Closed shingara closed 10 years ago
@dkubb This is an integration rather than an internal problem of adamantium. rspec-mocks are not prepared to be #dup ed. We need a general policy on how we act with this kind of problems.
IMHO we should fix rspec-mock.
I report an issue on rspec-mock : https://github.com/rspec/rspec-mocks/issues/199
I'm going to mark this as closed since there has been no recent activity.
If you mock an object and this object is memoize by Adamantium, you mock don't work anymore
Adamantium do a #dup on object to memoize it. But a mock object from rspec-mock forget all this stub do before the dup.
By example
If we use the :freezer => noop it's works.
I try mock system with mocha and it's work.