lib/rubocop/cop/rspec/named_subject.rb in rubocop-rspec-1.41.0 vs lib/rubocop/cop/rspec/named_subject.rb in rubocop-rspec-1.42.0

- old
+ new

@@ -60,10 +60,10 @@ def on_block(node) return if !rspec_block?(node) || ignored_shared_example?(node) subject_usage(node) do |subject_node| - add_offense(subject_node, location: :selector) + add_offense(subject_node.loc.selector) end end def ignored_shared_example?(node) cop_config['IgnoreSharedExamples'] &&