lib/rubocop/cop/rspec/overwriting_setup.rb in rubocop-rspec-1.32.0 vs lib/rubocop/cop/rspec/overwriting_setup.rb in rubocop-rspec-1.33.0
- old
+ new
@@ -20,10 +20,10 @@
# subject(:test) { something }
# let(:foo) { bar }
# let(:baz) { baz }
# let!(:other) { other }
class OverwritingSetup < Cop
- MSG = '`%<name>s` is already defined.'.freeze
+ MSG = '`%<name>s` is already defined.'
def_node_matcher :setup?, (Helpers::ALL + Subject::ALL).block_pattern
def_node_matcher :first_argument_name, '(send _ _ ({str sym} $_))'
def on_block(node)