Open BrazhnykYuriy opened 4 years ago
@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?