Should be ExpectedType instead of ActualType

This commit is contained in:
Michael Miller 2019-01-23 20:25:06 -07:00
parent b93ef1fd2d
commit f7d5c27e65
1 changed files with 6 additions and 6 deletions

View File

@ -10,7 +10,7 @@ module Spectator::Matchers
# ```
# expect(0).to be < 1
# ```
def <(other : ActualType) forall ActualType
def <(other : ExpectedType) forall ExpectedType
raise NotImplementedError.new("be <")
end
@ -19,7 +19,7 @@ module Spectator::Matchers
# ```
# expect(0).to be <= 1
# ```
def <=(other : ActualType) forall ActualType
def <=(other : ExpectedType) forall ExpectedType
raise NotImplementedError.new("be <=")
end
@ -28,7 +28,7 @@ module Spectator::Matchers
# ```
# expect(2).to be > 1
# ```
def >(other : ActualType) forall ActualType
def >(other : ExpectedType) forall ExpectedType
raise NotImplementedError.new("be >")
end
@ -37,7 +37,7 @@ module Spectator::Matchers
# ```
# expect(2).to be >= 1
# ```
def >=(other : ActualType) forall ActualType
def >=(other : ExpectedType) forall ExpectedType
raise NotImplementedError.new("be >=")
end
@ -46,7 +46,7 @@ module Spectator::Matchers
# ```
# expect(0).to be == 0
# ```
def ==(other : ActualType) forall ActualType
def ==(other : ExpectedType) forall ExpectedType
raise NotImplementedError.new("be ==")
end
@ -55,7 +55,7 @@ module Spectator::Matchers
# ```
# expect(0).to be != 1
# ```
def !=(other : ActualType) forall ActualType
def !=(other : ExpectedType) forall ExpectedType
raise NotImplementedError.new("be !=")
end
end