lib/rubocop/cop/rspec/expect_actual.rb in rubocop-rspec-1.18.0 vs lib/rubocop/cop/rspec/expect_actual.rb in rubocop-rspec-1.19.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, :expression)
+ add_offense(argument, location: :expression)
end
end
private