-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
Minitest/UnreachableAssertion
aware of assert
and refute
p…
…refix methods This PR makes `Minitest/UnreachableAssertion` aware of `assert` and `refute` prefix methods and removes `MinitestExplorationHelpers#assertion?` method. It makes the detection to assertion methods consistent. NOTE: The `MinitestExplorationHelpers#assertion?` method is redundant with `MinitestExplorationHelpers#assertion_method?` OTOH, the implementation uses `MinitestExplorationHelpers#assertion` instead of `MinitestExplorationHelpers#assertion_method?`. Maybe it's enough to verify that it starts with `assert` or `refute` instead of exact match of the known assertion method names.
- Loading branch information
Showing
6 changed files
with
15 additions
and
28 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...gelog/change_minitest_unreachable_assertion_aware_of_assertion_prefix_method.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* [#158](https://github.com/rubocop/rubocop-minitest/pull/158): Make `Minitest/UnreachableAssertion` aware of `assert` and `refute` prefix methods. ([@koic][]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters