[rspec-users] Error: can't convert Rspec::Mocks::Mock to String
andrea longhi
longhiandrea at gmail.com
Mon May 3 09:22:22 EDT 2010
On 3 Mag, 14:14, David Chelimsky <dchelim... at gmail.com> wrote:
> I see the same error (hadn't run against 1.9.2 in a while). Reported tohttp://github.com/rspec/rspec-rails/issues/issue/41
Thanks David.
I added this to my spec_helper.rb file
Rspec::Mocks::Mock.module_eval do
alias to_str to_s
end
and now it seems to work properly with no side effects, at least for
now
regards
Andrea
More information about the rspec-users
mailing list