lib/rubocop/cop/rspec/expect_output.rb in rubocop-rspec-1.27.0 vs lib/rubocop/cop/rspec/expect_output.rb in rubocop-rspec-1.28.0

- old
+ new

@@ -16,11 +16,9 @@ # expect { my_app.print_report }.to output('Hello World').to_stdout class ExpectOutput < Cop MSG = 'Use `expect { ... }.to output(...).to_%<name>s` '\ 'instead of mutating $%<name>s.'.freeze - def_node_matcher :hook?, Hooks::ALL.block_pattern - def on_gvasgn(node) return unless inside_example_scope?(node) variable_name, _rhs = *node name = variable_name[1..-1]