Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken stubbed method expectation #1139

Merged

Conversation

Evan-M
Copy link
Collaborator

@Evan-M Evan-M commented Apr 9, 2018

  • Update file to require correct Mocha lib for MiniTest (instead of
    Test::Unit). Using the wrong lib previously, meant that Mocha was
    never verifying the stubbed method, and the test passed
    (erroneously).

  • Update test to expect the correct method call for sign_in.

Resolves #1137 (which was exposed by the merge of #1134).

 - Update file to require correct Mocha lib for MiniTest (instead of
   Test::Unit). Using the wrong lib previously, meant that Mocha was
   never verifying the stubbed method, and the test passed
   (erroneously).

 - Update test to expect the correct method call for sign_in.

Resolves lynndylanhurley#1137.
@Evan-M
Copy link
Collaborator Author

Evan-M commented Apr 9, 2018

@zachfeldman, @MaicolBen, @lynndylanhurley, @krzysiek1507 (or anyone else):

Could a few people review this PR? It resolves the broken builds on master following the merge of #1134.

Copy link
Collaborator

@MaicolBen MaicolBen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Evan-M !

@Evan-M
Copy link
Collaborator Author

Evan-M commented Apr 11, 2018

As soon as I get a second approval, I will merge this!

@MaicolBen MaicolBen merged commit 20738c4 into lynndylanhurley:master Apr 11, 2018
@Evan-M Evan-M deleted the fix_broken_test_and_ci_builds branch April 11, 2018 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants