lib/rubocop/cop/rspec/predicate_matcher.rb in rubocop-rspec-2.16.0 vs lib/rubocop/cop/rspec/predicate_matcher.rb in rubocop-rspec-2.17.0

- old
+ new

@@ -177,10 +177,11 @@ def predicate_matcher_name?(name) name = name.to_s return false if allowed_explicit_matchers.include?(name) - name.start_with?('be_', 'have_') && !name.end_with?('?') + name.start_with?('be_', 'have_') && !name.end_with?('?') || + %w[include respond_to].include?(name) end def message_explicit(matcher) format(MSG_EXPLICIT, predicate_name: to_predicate_method(matcher.method_name),