lib/rubocop/cop/rspec/described_class.rb in rubocop-rspec-2.18.1 vs lib/rubocop/cop/rspec/described_class.rb in rubocop-rspec-2.19.0

- old
+ new

@@ -66,10 +66,11 @@ def_node_matcher :common_instance_exec_closure?, <<-PATTERN (block (send (const nil? {:Class :Module :Struct}) :new ...) ...) PATTERN # @!method rspec_block?(node) - def_node_matcher :rspec_block?, block_pattern('#ALL.all') + def_node_matcher :rspec_block?, + '({block numblock} (send #rspec? #ALL.all ...) ...)' # @!method scope_changing_syntax?(node) def_node_matcher :scope_changing_syntax?, '{def class module}' # @!method described_constant(node)