rspec-mocks
rspec-mocks copied to clipboard
RSpec::Mocks::Mock#to_str and Virtus
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
See #3 and https://gist.github.com/388026.