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

- old
+ new

@@ -34,18 +34,18 @@ FOCUS_SYMBOL = s(:sym, :focus) FOCUS_TRUE = s(:pair, FOCUS_SYMBOL, s(:true)) def_node_matcher :metadata, <<-PATTERN - {(send nil #{FOCUSABLE_SELECTORS} ... (hash $...)) - (send nil #{FOCUSABLE_SELECTORS} $...)} + {(send nil? #{FOCUSABLE_SELECTORS} ... (hash $...)) + (send nil? #{FOCUSABLE_SELECTORS} $...)} PATTERN def_node_matcher :focused_block?, focused.send_pattern def on_send(node) focus_metadata(node) do |focus| - add_offense(focus, :expression) + add_offense(focus, location: :expression) end end private