[rspec-users] Error: can't convert Rspec::Mocks::Mock to String

andrea longhi longhiandrea at gmail.com
Mon May 3 07:06:20 EDT 2010

Hello *,
I started today to test rspec current beta with ruby 1.9.2  and rails
3.0. I created a basic app with a scaffold. I am experiencing a lot of
failures in the geneated controller spec. I am pasting the complete
error string:

can't convert Rspec::Mocks::Mock to String (Rspec::Mocks::Mock#to_str
gives Rspec::Mocks::Mock)

This is my current rspec gems setup:

rspec (2.0.0.beta.8)
rspec-core (2.0.0.beta.8)
rspec-expectations (2.0.0.beta.8)
rspec-mocks (2.0.0.beta.8)
rspec-rails (2.0.0.beta.8)

Of course no error is raised using ruby 1.9.1 or 1.8.7
Am I missing something?


More information about the rspec-users mailing list