lib/rubocop/cop/capybara/current_path_expectation.rb in rubocop-capybara-2.20.0 vs lib/rubocop/cop/capybara/current_path_expectation.rb in rubocop-capybara-2.21.0

- old
+ new

@@ -35,23 +35,23 @@ '`have_current_path` matcher on `page`' RESTRICT_ON_SEND = %i[expect].freeze # @!method expectation_set_on_current_path(node) - def_node_matcher :expectation_set_on_current_path, <<-PATTERN + def_node_matcher :expectation_set_on_current_path, <<~PATTERN (send nil? :expect (send {(send nil? :page) nil?} :current_path)) PATTERN # Supported matchers: eq(...) / match(/regexp/) / match('regexp') # @!method as_is_matcher(node) - def_node_matcher :as_is_matcher, <<-PATTERN + def_node_matcher :as_is_matcher, <<~PATTERN (send #expectation_set_on_current_path ${:to :to_not :not_to} ${(send nil? :eq ...) (send nil? :match (regexp ...))}) PATTERN # @!method regexp_node_matcher(node) - def_node_matcher :regexp_node_matcher, <<-PATTERN + def_node_matcher :regexp_node_matcher, <<~PATTERN (send #expectation_set_on_current_path ${:to :to_not :not_to} $(send nil? :match ${str dstr xstr})) PATTERN