Skip to content

Commit

Permalink
Merge pull request #1139 from hirepool/fix_broken_test_and_ci_builds
Browse files Browse the repository at this point in the history
Fix broken stubbed method expectation
  • Loading branch information
Maicol Bentancor authored Apr 11, 2018
2 parents 7df8960 + 0591732 commit 20738c4
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'test_helper'
require 'mocha/test_unit'
require 'mocha/minitest'

# was the web request successful?
# was the user redirected to the right page?
Expand Down Expand Up @@ -70,7 +70,10 @@ def get_parsed_data_json
end

test 'sign_in was called' do
User.any_instance.expects(:sign_in)
DeviseTokenAuth::OmniauthCallbacksController.any_instance\
.expects(:sign_in).with(
:user, instance_of(User), has_entries(store: false, bypass: false)
)
get_success
end

Expand Down

0 comments on commit 20738c4

Please sign in to comment.