lib/rubocop/cop/rspec/predicate_matcher.rb in rubocop-rspec-2.0.0.pre vs lib/rubocop/cop/rspec/predicate_matcher.rb in rubocop-rspec-2.0.0
- old
+ new
@@ -28,11 +28,11 @@
def_node_matcher :predicate_in_actual?, <<-PATTERN
(send
(send nil? :expect {
(block $(send !nil? #predicate? ...) ...)
$(send !nil? #predicate? ...)})
- $#{Runners::ALL.node_pattern_union}
+ $#Runners.all
$#boolean_matcher?)
PATTERN
def_node_matcher :be_bool?, <<-PATTERN
(send nil? {:be :eq :eql :equal} {true false})
@@ -153,19 +153,19 @@
end
def_node_matcher :predicate_matcher?, <<-PATTERN
(send
(send nil? :expect $!nil?)
- #{Runners::ALL.node_pattern_union}
+ #Runners.all
{$(send nil? #predicate_matcher_name? ...)
(block $(send nil? #predicate_matcher_name? ...) ...)})
PATTERN
def_node_matcher :predicate_matcher_block?, <<-PATTERN
(block
(send
(send nil? :expect $!nil?)
- #{Runners::ALL.node_pattern_union}
+ #Runners.all
$(send nil? #predicate_matcher_name?))
...)
PATTERN
def predicate_matcher_name?(name)