Skip to content

Commit

Permalink
Merge pull request #311 from koic/suppress_deprecation_warning_for_mi…
Browse files Browse the repository at this point in the history
…nitest_multiple_assertions

Suppress deprecation warning for `Minitst/MultipleAssertions`
  • Loading branch information
koic authored Jul 10, 2024
2 parents 9955aa1 + 2ad914d commit 3f9c8a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* [#311](https://github.com/rubocop/rubocop-minitest/pull/311): Suppress deprecation warning for `Minitst/MultipleAssertions`. ([@koic][])
3 changes: 2 additions & 1 deletion lib/rubocop/cop/minitest/multiple_assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ module Minitest
# end
#
class MultipleAssertions < Base
include ConfigurableMax
include MinitestExplorationHelpers

MSG = 'Test case has too many assertions [%<total>d/%<max>d].'

exclude_limit 'Max'

def on_class(class_node)
return unless test_class?(class_node)

Expand Down

0 comments on commit 3f9c8a9

Please sign in to comment.