mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Implement equality method for BeComparison
This commit is contained in:
parent
9ccba7570e
commit
93801553b6
1 changed files with 2 additions and 2 deletions
|
@ -46,8 +46,8 @@ module Spectator::Matchers
|
|||
# ```
|
||||
# expect(0).to be == 0
|
||||
# ```
|
||||
def ==(other : ExpectedType) forall ExpectedType
|
||||
raise NotImplementedError.new("be ==")
|
||||
def ==(expected : ExpectedType) forall ExpectedType
|
||||
EqualityMatcher.new(expected)
|
||||
end
|
||||
|
||||
# Creates a matcher that checks if a value is not equal to an expected value.
|
||||
|
|
Loading…
Reference in a new issue