Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

refactor OperatorMatcher

  • Loading branch information...
commit 0b26b3534cc438257569f049c71e41cbaf3b9d96 1 parent 6a42a37
@dchelimsky authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/spec/matchers/operator_matcher.rb
View
6 lib/spec/matchers/operator_matcher.rb
@@ -1,6 +1,6 @@
module Spec
module Matchers
- class BaseOperatorMatcher
+ class OperatorMatcher
def initialize(actual)
@actual = actual
end
@@ -23,7 +23,7 @@ def description
end
- class PositiveOperatorMatcher < BaseOperatorMatcher #:nodoc:
+ class PositiveOperatorMatcher < OperatorMatcher #:nodoc:
def __delegate_operator(actual, operator, expected)
return true if actual.__send__(operator, expected)
@@ -36,7 +36,7 @@ def __delegate_operator(actual, operator, expected)
end
- class NegativeOperatorMatcher < BaseOperatorMatcher #:nodoc:
+ class NegativeOperatorMatcher < OperatorMatcher #:nodoc:
def __delegate_operator(actual, operator, expected)
return true unless actual.__send__(operator, expected)
Please sign in to comment.
Something went wrong with that request. Please try again.