lib/rubocop/cop/rspec/capybara/current_path_expectation.rb in rubocop-rspec-2.0.0.pre vs lib/rubocop/cop/rspec/capybara/current_path_expectation.rb in rubocop-rspec-2.0.0
- old
+ new
@@ -35,16 +35,16 @@
PATTERN
# Supported matchers: eq(...) / match(/regexp/) / match('regexp')
def_node_matcher :as_is_matcher, <<-PATTERN
(send
- #expectation_set_on_current_path $#{Runners::ALL.node_pattern_union}
+ #expectation_set_on_current_path $#Runners.all
${(send nil? :eq ...) (send nil? :match (regexp ...))})
PATTERN
def_node_matcher :regexp_str_matcher, <<-PATTERN
(send
- #expectation_set_on_current_path $#{Runners::ALL.node_pattern_union}
+ #expectation_set_on_current_path $#Runners.all
$(send nil? :match (str $_)))
PATTERN
def on_send(node)
expectation_set_on_current_path(node) do