Skip to content

Commit

Permalink
Remove useless keyword arguments in specs
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Mar 1, 2024
1 parent 6994072 commit e0eccab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/rubocop/cop/minitest/assert_match_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def test_do_something

# Redundant parentheses should be removed by `Style/RedundantParentheses` cop.
define_method("test_registers_offense_when_using_assert_with_#{matcher}_in_redundant_parentheses") do
assert_no_offenses(<<~RUBY, matcher: matcher)
assert_no_offenses(<<~RUBY)
class FooTest < Minitest::Test
def test_do_something
assert((matcher.#{matcher}(string)))
Expand Down
2 changes: 1 addition & 1 deletion test/rubocop/cop/minitest/refute_match_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def test_do_something

# Redundant parentheses should be removed in another cop.
define_method("test_does_not_register_offense_when_using_refute_with_#{matcher}_in_redundant_parentheses") do
assert_no_offenses(<<~RUBY, matcher: matcher)
assert_no_offenses(<<~RUBY)
class FooTest < Minitest::Test
def test_do_something
refute((matcher.#{matcher}(string)))
Expand Down

0 comments on commit e0eccab

Please sign in to comment.