Implement equality method for BeComparison

This commit is contained in:
Michael Miller 2019-01-23 20:38:23 -07:00
parent 9ccba7570e
commit 93801553b6

View file

@ -46,8 +46,8 @@ module Spectator::Matchers
# ``` # ```
# expect(0).to be == 0 # expect(0).to be == 0
# ``` # ```
def ==(other : ExpectedType) forall ExpectedType def ==(expected : ExpectedType) forall ExpectedType
raise NotImplementedError.new("be ==") EqualityMatcher.new(expected)
end end
# Creates a matcher that checks if a value is not equal to an expected value. # Creates a matcher that checks if a value is not equal to an expected value.