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

- old
+ new

@@ -12,10 +12,10 @@ # $stdout = STDOUT # expect($stdout.string).to eq('Hello World') # # # good # expect { my_app.print_report }.to output('Hello World').to_stdout - class ExpectOutput < Cop + class ExpectOutput < Base MSG = 'Use `expect { ... }.to output(...).to_%<name>s` '\ 'instead of mutating $%<name>s.' def on_gvasgn(node) return unless inside_example_scope?(node)