lib/rubocop/cop/rspec/expect_output.rb in rubocop-rspec-1.41.0 vs lib/rubocop/cop/rspec/expect_output.rb in rubocop-rspec-1.42.0

- old
+ new

@@ -25,10 +25,10 @@ variable_name, _rhs = *node # rubocop:enable InternalAffairs/NodeDestructuring name = variable_name[1..-1] return unless name.eql?('stdout') || name.eql?('stderr') - add_offense(node, location: :name, message: format(MSG, name: name)) + add_offense(node.loc.name, message: format(MSG, name: name)) end private # Detect if we are inside the scope of a single example