lib/rubocop/cop/rspec/pending.rb in rubocop-rspec-1.32.0 vs lib/rubocop/cop/rspec/pending.rb in rubocop-rspec-1.33.0
- old
+ new
@@ -24,22 +24,22 @@
#
# # good
# describe MyClass do
# end
class Pending < Cop
- MSG = 'Pending spec found.'.freeze
+ MSG = 'Pending spec found.'
PENDING_EXAMPLES = Examples::PENDING + Examples::SKIPPED \
+ ExampleGroups::SKIPPED
SKIPPABLE_EXAMPLES = ExampleGroups::GROUPS + Examples::EXAMPLES
SKIPPABLE_SELECTORS = SKIPPABLE_EXAMPLES.node_pattern_union
SKIP_SYMBOL = s(:sym, :skip)
PENDING_SYMBOL = s(:sym, :pending)
def_node_matcher :metadata, <<-PATTERN
- {(send {(const nil? :RSpec) nil?} #{SKIPPABLE_SELECTORS} ... (hash $...))
- (send {(const nil? :RSpec) nil?} #{SKIPPABLE_SELECTORS} $...)}
+ {(send #{RSPEC} #{SKIPPABLE_SELECTORS} ... (hash $...))
+ (send #{RSPEC} #{SKIPPABLE_SELECTORS} $...)}
PATTERN
def_node_matcher :pending_block?, PENDING_EXAMPLES.send_pattern
def on_send(node)