lib/rubocop/cop/rspec/expect_output.rb in rubocop-rspec-2.26.1 vs lib/rubocop/cop/rspec/expect_output.rb in rubocop-rspec-2.27.0

- old
+ new

@@ -20,13 +20,10 @@ 'instead of mutating $%<name>s.' def on_gvasgn(node) return unless inside_example_scope?(node) - # rubocop:disable InternalAffairs/NodeDestructuring - variable_name, _rhs = *node - # rubocop:enable InternalAffairs/NodeDestructuring - name = variable_name[1..] + name = node.name[1..] return unless name.eql?('stdout') || name.eql?('stderr') add_offense(node.loc.name, message: format(MSG, name: name)) end