lib/rubocop/cop/rspec/invalid_predicate_matcher.rb in rubocop-rspec-1.42.0 vs lib/rubocop/cop/rspec/invalid_predicate_matcher.rb in rubocop-rspec-1.43.0
- old
+ new
@@ -13,10 +13,10 @@
# # bad
# expect(foo).to be_something?
#
# # good
# expect(foo).to be_something
- class InvalidPredicateMatcher < Cop
+ class InvalidPredicateMatcher < Base
MSG = 'Omit `?` from `%<matcher>s`.'
def_node_matcher :invalid_predicate_matcher?, <<-PATTERN
(send (send nil? :expect ...) #{Runners::ALL.node_pattern_union} $(send nil? #predicate?))
PATTERN