lib/rubocop/cop/rspec/capybara/current_path_expectation.rb in rubocop-rspec-1.18.0 vs lib/rubocop/cop/rspec/capybara/current_path_expectation.rb in rubocop-rspec-1.19.0

- old
+ new

@@ -25,15 +25,15 @@ MSG = 'Do not set an RSpec expectation on `current_path` in ' \ 'Capybara feature specs - instead, use the ' \ '`have_current_path` matcher on `page`'.freeze def_node_matcher :expectation_set_on_current_path, <<-PATTERN - (send nil :expect (send {(send nil :page) nil} :current_path)) + (send nil? :expect (send {(send nil? :page) nil?} :current_path)) PATTERN def on_send(node) expectation_set_on_current_path(node) do - add_offense(node, :selector) + add_offense(node, location: :selector) end end end end end