rspec-mocks icon indicating copy to clipboard operation
rspec-mocks copied to clipboard

RSpec::Mocks::Mock#to_str and Virtus

Open lminaudier opened this issue 14 years ago • 1 comments

Hi,

I run into an issue with RSpec and the Virtus gem. This issue can be found here - issue #78 -

It seems that RSpec::Mocks::Mock define a to_strmethod and as @dkubb mention it in its response to the issue, the convention seems to define this method only for 'String-ish' classes.

So we wonder what is the reason to define a to_str method in RSpec::Mocks::Mock ?

Thanks

lminaudier avatar Mar 01 '12 21:03 lminaudier

See #3 and https://gist.github.com/388026.

dchelimsky avatar Mar 02 '12 00:03 dchelimsky