Skip to content

Fix broken stubbed method expectation#1139

Merged
MaicolBen merged 1 commit into
lynndylanhurley:masterfrom
tmjfitch:fix_broken_test_and_ci_builds
Apr 11, 2018
Merged

Fix broken stubbed method expectation#1139
MaicolBen merged 1 commit into
lynndylanhurley:masterfrom
tmjfitch:fix_broken_test_and_ci_builds

Conversation

@Evan-M

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

Copy link
Copy Markdown
Collaborator
  • 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

Evan-M commented Apr 9, 2018

Copy link
Copy Markdown
Collaborator Author

@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.

@MaicolBen MaicolBen left a comment

Copy link
Copy Markdown
Collaborator

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

Evan-M commented Apr 11, 2018

Copy link
Copy Markdown
Collaborator Author

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