lib/rubocop/cop/rspec/context_method.rb in rubocop-rspec-2.17.0 vs lib/rubocop/cop/rspec/context_method.rb in rubocop-rspec-2.17.1

- old
+ new

@@ -29,10 +29,14 @@ MSG = 'Use `describe` for testing methods.' # @!method context_method(node) def_node_matcher :context_method, <<-PATTERN - (block (send #rspec? :context $(str #method_name?) ...) ...) + (block + (send #rspec? :context + ${(str #method_name?) (dstr (str #method_name?) ...)} + ...) + ...) PATTERN def on_block(node) # rubocop:disable InternalAffairs/NumblockHandler context_method(node) do |context| add_offense(context) do |corrector|