lib/rubocop/cop/rspec/context_wording.rb in rubocop-rspec-1.32.0 vs lib/rubocop/cop/rspec/context_wording.rb in rubocop-rspec-1.33.0

- old
+ new

@@ -25,13 +25,13 @@ # # good # context 'when the display name is not present' do # # ... # end class ContextWording < Cop - MSG = 'Start context description with %<prefixes>s.'.freeze + MSG = 'Start context description with %<prefixes>s.' def_node_matcher :context_wording, <<-PATTERN - (block (send _ { :context :shared_context } $(str #bad_prefix?)) ...) + (block (send #{RSPEC} { :context :shared_context } $(str #bad_prefix?) ...) ...) PATTERN def on_block(node) context_wording(node) do |context| add_offense(context, message: message)