diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index cc22fa9e1..2dba218a8 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -93,17 +93,6 @@ Naming/MethodParameterName: - 'lib/aruba/platforms/unix_platform.rb' - 'lib/aruba/tasks/docker_helpers.rb' -# Offense count: 1 -# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros. -# NamePrefix: is_, has_, have_ -# ForbiddenPrefixes: is_, has_, have_ -# AllowedMethods: is_a? -# MethodDefinitionMacros: define_method, define_singleton_method -Naming/PredicateName: - Exclude: - - 'spec/**/*' - - 'lib/aruba/matchers/base/base_matcher.rb' - # Offense count: 1 Performance/Caller: Exclude: diff --git a/lib/aruba/matchers/base/base_matcher.rb b/lib/aruba/matchers/base/base_matcher.rb index ed37ac786..a82948910 100644 --- a/lib/aruba/matchers/base/base_matcher.rb +++ b/lib/aruba/matchers/base/base_matcher.rb @@ -70,14 +70,6 @@ def failure_message def failure_message_when_negated "expected #{description_of @actual} not to #{description}" end - - # @private - def self.has_default_failure_messages?(matcher) - matcher.method(:failure_message).owner == self && - matcher.method(:failure_message_when_negated).owner == self - rescue NameError - false - end end include DefaultFailureMessages