lib/rubocop/cop/rspec/pending.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/pending.rb in rubocop-rspec-2.3.0

- old
+ new

@@ -32,23 +32,27 @@ # describe MyClass do # end class Pending < Base MSG = 'Pending spec found.' + # @!method skippable?(node) def_node_matcher :skippable?, send_pattern(<<~PATTERN) {#ExampleGroups.regular #Examples.regular} PATTERN + # @!method skipped_in_metadata?(node) def_node_matcher :skipped_in_metadata?, <<-PATTERN { (send _ _ <#skip_or_pending? ...>) (send _ _ ... (hash <(pair #skip_or_pending? { true str }) ...>)) } PATTERN + # @!method skip_or_pending?(node) def_node_matcher :skip_or_pending?, '{(sym :skip) (sym :pending)}' + # @!method pending_block?(node) def_node_matcher :pending_block?, send_pattern(<<~PATTERN) { #ExampleGroups.skipped #Examples.skipped