lib/rubocop/cop/rspec/expect_output.rb in rubocop-rspec-2.12.1 vs lib/rubocop/cop/rspec/expect_output.rb in rubocop-rspec-2.13.0
- old
+ new
@@ -12,9 +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 < Base
MSG = 'Use `expect { ... }.to output(...).to_%<name>s` ' \
'instead of mutating $%<name>s.'
def on_gvasgn(node)