-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
This issue seems to have appeared right around the same time I merged #1134 into master. It looks like it's happening on other builds as well though.
A recent update to the Mocha gem (release 1.5.0) prevents the use of Mocha outside of test/examples.
This seems to break all of the Travis CI builds, since they try to bundle the latest release.
The simplest solution is probably to specify ~> 1.4.0 in the Gemfile.
That said, it seems like the only place Mocha is used in this project is in /test/controllers/devise_token_auth/omniauth_callbacks_controller_test.rb. Perhaps the better long term approach is to refactor that test to either: (A) not stub method calls in the before blocks, (B) stub the methods with Minitest instead (thereby removing the dependency on Mocha), or (C) replace the stubbed responses with real data and not stub any methods at all (thereby removing the dependency on Mocha).
I should probably add, the test in question inherits from ActionDispatch::IntegrationTest, so it is probably a bad idea to be stubbing method calls here.