lib/rubocop/cop/rspec/expect_output.rb in rubocop-rspec-1.18.0 vs lib/rubocop/cop/rspec/expect_output.rb in rubocop-rspec-1.19.0
- old
+ new
@@ -25,10 +25,10 @@
variable_name, _rhs = *node
name = variable_name[1..-1]
return unless name.eql?('stdout') || name.eql?('stderr')
- add_offense(node, :name, format(MSG, name: name))
+ add_offense(node, location: :name, message: format(MSG, name: name))
end
private
# Detect if we are inside the scope of a single example