lib/rubocop/cop/rspec/predicate_matcher.rb in rubocop-rspec-3.0.1 vs lib/rubocop/cop/rspec/predicate_matcher.rb in rubocop-rspec-3.0.2
- old
+ new
@@ -30,11 +30,11 @@
(send
(send nil? :expect {
(block $(send !nil? #predicate? ...) ...)
$(send !nil? #predicate? ...)})
$#Runners.all
- $#boolean_matcher?)
+ $#boolean_matcher? ...)
PATTERN
# @!method be_bool?(node)
def_node_matcher :be_bool?, <<~PATTERN
(send nil? {:be :eq :eql :equal} {true false})
@@ -181,11 +181,15 @@
# @!method predicate_matcher?(node)
def_node_matcher :predicate_matcher?, <<~PATTERN
(send
(send nil? :expect $!nil?)
#Runners.all
- {$(send nil? #predicate_matcher_name? ...)
- (block $(send nil? #predicate_matcher_name? ...) ...)})
+ {
+ $(send nil? #predicate_matcher_name? ...)
+ (block $(send nil? #predicate_matcher_name? ...) ...)
+ }
+ ...
+ )
PATTERN
# @!method predicate_matcher_block?(node)
def_node_matcher :predicate_matcher_block?, <<~PATTERN
(block