Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent breaking change for assertion message in test
Follow up rubocop/rubocop#11729. This PR prevents breaking change for assertion message in test. e.g. ```console % bundle exec ruby -Itest test/rubocop/cop/minitest/lifecycle_hooks_order_test.rb (snip) Fabulous run in 0.075080s, 93.2339 runs/s, 93.2339 assertions/s. 1) Failure: LifecycleHooksOrderTest#test_registers_offense_when_hooks_are_not_before_test_cases [test/rubocop/cop/minitest/lifecycle_hooks_order_test.rb:62]: --- expected +++ actual @@ -4,7 +4,7 @@ end def setup; end - ^^^^^^^^^^^^^^ `setup` is supposed to appear before `test_something`. + ^^^^^^^^^^^^^^ Minitest/LifecycleHooksOrder: `setup` is supposed to appear before `test_something`. def teardown; end end " ```
- Loading branch information