lib/rubocop/cop/rspec/expect_actual.rb in rubocop-rspec-1.33.0 vs lib/rubocop/cop/rspec/expect_actual.rb in rubocop-rspec-1.34.0
- old
+ new
@@ -43,10 +43,10 @@
def_node_matcher :expect_literal, '(send _ :expect $#literal?)'
def on_send(node)
expect_literal(node) do |argument|
- add_offense(argument, location: :expression)
+ add_offense(argument)
end
end
private