lib/rubocop/cop/rspec/focus.rb in rubocop-rspec-1.31.0 vs lib/rubocop/cop/rspec/focus.rb in rubocop-rspec-1.32.0
- old
+ new
@@ -34,11 +34,11 @@
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 {(const nil? :RSpec) nil?} #{FOCUSABLE_SELECTORS} ... (hash $...))
+ (send {(const nil? :RSpec) nil?} #{FOCUSABLE_SELECTORS} $...)}
PATTERN
def_node_matcher :focused_block?, focused.send_pattern
def on_send(node)