lib/rubocop/cop/rspec/expect_output.rb in rubocop-rspec-1.32.0 vs lib/rubocop/cop/rspec/expect_output.rb in rubocop-rspec-1.33.0
- old
+ new
@@ -14,10 +14,10 @@
#
# # good
# 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
+ 'instead of mutating $%<name>s.'
def on_gvasgn(node)
return unless inside_example_scope?(node)
variable_name, _rhs = *node