From f7d5c27e65536ea5c96c94873c97c0a75dff4b09 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Wed, 23 Jan 2019 20:25:06 -0700 Subject: [PATCH] Should be ExpectedType instead of ActualType --- src/spectator/matchers/be_comparison.cr | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/spectator/matchers/be_comparison.cr b/src/spectator/matchers/be_comparison.cr index aa0dac5..a8d7f0e 100644 --- a/src/spectator/matchers/be_comparison.cr +++ b/src/spectator/matchers/be_comparison.cr @@ -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