lib/rubocop/cop/rspec/predicate_matcher.rb in rubocop-rspec-2.12.1 vs lib/rubocop/cop/rspec/predicate_matcher.rb in rubocop-rspec-2.13.0
- old
+ new
@@ -274,10 +274,11 @@
# # bad
# expect(foo).to be_something
#
# # good - the above code is rewritten to it by this cop
# expect(foo.something?).to be_truthy
+ #
class PredicateMatcher < Base
extend AutoCorrector
include ConfigurableEnforcedStyle
include InflectedHelper
include ExplicitHelper
@@ -289,10 +290,10 @@
when :explicit
check_explicit(node)
end
end
- def on_block(node)
+ def on_block(node) # rubocop:disable InternalAffairs/NumblockHandler
check_explicit(node) if style == :explicit
end
private