lib/rubocop/cop/rspec/cop.rb in rubocop-rspec-1.12.0 vs lib/rubocop/cop/rspec/cop.rb in rubocop-rspec-1.13.0

- old
+ new

@@ -42,13 +42,17 @@ def self.inherited(subclass) RuboCop::Cop::Cop.inherited(subclass) end def relevant_file?(file) - rspec_pattern =~ file && super + relevant_rubocop_rspec_file?(file) && super end private + + def relevant_rubocop_rspec_file?(file) + rspec_pattern =~ file + end def rspec_pattern Regexp.union(rspec_pattern_config.map(&Regexp.public_method(:new))) end