lib/rubocop/cop/rspec/pending_without_reason.rb in rubocop-rspec-2.25.0 vs lib/rubocop/cop/rspec/pending_without_reason.rb in rubocop-rspec-2.26.0
- old
+ new
@@ -101,10 +101,10 @@
def on_send(node)
on_pending_by_metadata(node)
return unless (parent = parent_node(node))
- if example_group?(parent) || block_node_example_group?(node)
+ if spec_group?(parent) || block_node_example_group?(node)
on_skipped_by_example_method(node)
on_skipped_by_example_group_method(node)
elsif example?(parent)
on_skipped_by_in_example_method(node)
end