lib/rubocop/cop/rspec/overwriting_setup.rb in rubocop-rspec-1.15.1 vs lib/rubocop/cop/rspec/overwriting_setup.rb in rubocop-rspec-1.16.0
- old
+ new
@@ -20,10 +20,10 @@
# subject(:test) { something }
# let(:foo) { bar }
# let(:baz) { baz }
# let!(:other) { other }
class OverwritingSetup < Cop
- MSG = '`%{name}` is already defined.'.freeze
+ MSG = '`%<name>s` is already defined.'.freeze
def_node_matcher :setup?, <<-PATTERN
(block (send nil {:let :let! :subject} (sym $_)) ...)
PATTERN