lib/rubocop/cop/rspec/focus.rb in rubocop-rspec-1.32.0 vs lib/rubocop/cop/rspec/focus.rb in rubocop-rspec-1.33.0

- old
+ new

@@ -18,11 +18,11 @@ # # # good # describe MyClass do # end class Focus < Cop - MSG = 'Focused spec found.'.freeze + MSG = 'Focused spec found.' focusable = ExampleGroups::GROUPS + ExampleGroups::SKIPPED + Examples::EXAMPLES + @@ -34,11 +34,11 @@ FOCUS_SYMBOL = s(:sym, :focus) FOCUS_TRUE = s(:pair, FOCUS_SYMBOL, s(:true)) def_node_matcher :metadata, <<-PATTERN - {(send {(const nil? :RSpec) nil?} #{FOCUSABLE_SELECTORS} ... (hash $...)) - (send {(const nil? :RSpec) nil?} #{FOCUSABLE_SELECTORS} $...)} + {(send #{RSPEC} #{FOCUSABLE_SELECTORS} ... (hash $...)) + (send #{RSPEC} #{FOCUSABLE_SELECTORS} $...)} PATTERN def_node_matcher :focused_block?, focused.send_pattern def on_send(node)