rspec/rspec-mocks — Issue #113: RSpec::Mocks::Mock#to_str and Virtus
Author: lminaudier
Created: 2012-03-01 21:20:11+00:00
State: open

Hi,

I run into an issue with RSpec and the [Virtus](https://github.com/solnic/virtus) gem. This issue can be found here - [issue #78](https://github.com/solnic/virtus/issues/78) -

It seems that `RSpec::Mocks::Mock` define a `to_str`method 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