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

- old
+ new

@@ -28,11 +28,11 @@ def on_block(node) return unless hook?(node) return if node.body.nil? expectation(node.body) do |expect| - add_offense(expect, location: :selector, - message: message(expect, node)) + add_offense(expect.loc.selector, + message: message(expect, node)) end end private