lib/rubocop/cop/rspec/focus.rb in rubocop-rspec-2.25.0 vs lib/rubocop/cop/rspec/focus.rb in rubocop-rspec-2.26.0

- old
+ new

@@ -54,11 +54,11 @@ include RangeHelp MSG = 'Focused spec found.' # @!method focusable_selector?(node) - def_node_matcher :focusable_selector?, <<-PATTERN + def_node_matcher :focusable_selector?, <<~PATTERN { #ExampleGroups.regular #ExampleGroups.skipped #Examples.regular #Examples.skipped @@ -66,10 +66,10 @@ #SharedGroups.all } PATTERN # @!method metadata(node) - def_node_matcher :metadata, <<-PATTERN + def_node_matcher :metadata, <<~PATTERN {(send #rspec? #focusable_selector? <$(sym :focus) ...>) (send #rspec? #focusable_selector? ... (hash <$(pair (sym :focus) true) ...>))} PATTERN # @!method focused_block?(node)