class Boxes::Testing::Matchers::BaseMatcher
Constants
- UNDEFINED
we can't compare to nil, because we might want nil
Attributes
actual[R]
expected[R]
Public Class Methods
new(expected = UNDEFINED)
click to toggle source
# File lib/boxes/testing/matchers/base_matcher.rb, line 10 def initialize(expected = UNDEFINED) @expected = expected unless UNDEFINED.equal?(expected) end
Public Instance Methods
matches?(actual)
click to toggle source
# File lib/boxes/testing/matchers/base_matcher.rb, line 14 def matches?(actual) @actual = actual match(actual, expected) end