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

Use MethodCallAssertions instead of Mocha#expects #33391

Merged
merged 1 commit into from Jul 19, 2018

Conversation

utilum
Copy link
Contributor

@utilum utilum commented Jul 19, 2018

Many calls to Mocha#expects preceded the introduction of
ActiveSupport::Testing::MethodCallAssertions in 53f64c0,
and many are simple to replace with MethodCallAssertions.

This patch makes all these simple replacements.

Step 5 in #33162

@rails-bot
Copy link

r? @schneems

(@rails-bot has picked a reviewer for you, use r? to override)

@utilum utilum mentioned this pull request Jul 19, 2018
8 tasks
Many calls to `Mocha#expects` preceded the introduction of
`ActiveSupport::Testing::MethodCallAssertions` in 53f64c0,
and many are simple to replace with `MethodCallAssertions`.

This patch makes all these simple replacements.

Step 5 in rails#33162
@utilum utilum force-pushed the method_call_assertions_instead_of_mocha branch from fbcb788 to d0743d0 Compare July 19, 2018 00:31
@kamipo kamipo merged commit 04d5e08 into rails:master Jul 19, 2018
utilum added a commit to utilum/rails that referenced this pull request Jul 22, 2018
A correct, but not obvious use of `ActiveSupport::Testing::MethodCallAssertions`, which might also have been part of rails#33337 or rails#33391.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants