lib/rubocop/cop/rspec/context_method.rb in rubocop-rspec-1.42.0 vs lib/rubocop/cop/rspec/context_method.rb in rubocop-rspec-1.43.0

- old
+ new

@@ -21,16 +21,16 @@ # end # # describe '.foo_bar' do # # ... # end - class ContextMethod < Cop + class ContextMethod < Base extend AutoCorrector MSG = 'Use `describe` for testing methods.' def_node_matcher :context_method, <<-PATTERN - (block (send #{RSPEC} :context $(str #method_name?) ...) ...) + (block (send #rspec? :context $(str #method_name?) ...) ...) PATTERN def on_block(node) context_method(node) do |context| add_offense(context) do |corrector|