lib/rubocop/cop/rspec/pending.rb in rubocop-rspec-1.33.0 vs lib/rubocop/cop/rspec/pending.rb in rubocop-rspec-1.34.0
- old
+ new
@@ -44,10 +44,10 @@
def_node_matcher :pending_block?, PENDING_EXAMPLES.send_pattern
def on_send(node)
return unless pending_block?(node) || skipped_from_metadata?(node)
- add_offense(node, location: :expression)
+ add_offense(node)
end
private
def skipped_from_metadata?(node)