Skip to content

Commit

Permalink
fixup! [Fix rubocop#117] Add new Minitest/AssertWithTwoArguments cop
Browse files Browse the repository at this point in the history
  • Loading branch information
cstyles committed Feb 21, 2021
1 parent 6dc8b08 commit 6917350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/assert_with_two_arguments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class AssertWithTwoArguments < Cop

def on_send(node)
assert_with_two_arguments?(node) do |_expected, message|
return if message.str_type?
return if message.str_type? || message.dstr_type?

arguments = node.arguments.map(&:source).join(', ')
add_offense(node, message: format(MSG, arguments: arguments))
Expand Down

0 comments on commit 6917350

Please sign in to comment.