lib/rubocop/cop/rspec/pending.rb in rubocop-rspec-2.13.2 vs lib/rubocop/cop/rspec/pending.rb in rubocop-rspec-2.14.0
- old
+ new
@@ -31,27 +31,18 @@
# # good
# describe MyClass do
# end
#
class Pending < Base
+ include SkipOrPending
+
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)
{