You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately i can't get this both to work together
rspec (3.8.0)
rspec-mocks (3.8.1)
mocha (1.4.0)
This is the line that is failing:
expect(User).to have_received(:activate!).once
(class)> expected to have received activate!, but that object is not a spy or method has not been stubbed.
I guess this is because RSpec expectations are looking for RSpec mocks instead of Mocha.|
Any ideas?
The text was updated successfully, but these errors were encountered:
@BrazhnykYuriy I had the same issue, have you tried adding this to your config file? config.include Mocha::API
Also, the order that you include :mocha and :rspec at the config file appears to matter as well.
That was a long time ago, we successfully dropped mocha.
We used a flag on specs that defined what mocking library to use for each spec(included mocha or rspec-mocks before each spec).
And gradually rewritten all specs to rspec-mocks.
Unfortunately i can't get this both to work together
rspec (3.8.0)
rspec-mocks (3.8.1)
mocha (1.4.0)
This is the line that is failing:
I guess this is because RSpec expectations are looking for RSpec mocks instead of Mocha.|
Any ideas?
The text was updated successfully, but these errors were encountered: