lib/rubocop/cop/rspec/overwriting_setup.rb in rubocop-rspec-2.0.0.pre vs lib/rubocop/cop/rspec/overwriting_setup.rb in rubocop-rspec-2.0.0

- old
+ new

@@ -22,10 +22,11 @@ # let(:baz) { baz } # let!(:other) { other } class OverwritingSetup < Base MSG = '`%<name>s` is already defined.' - def_node_matcher :setup?, (Helpers::ALL + Subject::ALL).block_pattern + def_node_matcher :setup?, block_pattern('{#Helpers.all #Subjects.all}') + def_node_matcher :first_argument_name, '(send _ _ ({str sym} $_))' def on_block(node) return unless example_group_with_body?(node)