From 2b71400d9abc22c7df5f9f83cbc70c605212de9b Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Fri, 22 Mar 2019 13:05:24 -0600 Subject: [PATCH] Remove tests that had a prefixed actual value --- .../greater_than_equal_matcher_spec.cr | 24 ------------------- spec/matchers/greater_than_matcher_spec.cr | 24 ------------------- spec/matchers/less_than_equal_matcher_spec.cr | 24 ------------------- spec/matchers/less_than_matcher_spec.cr | 24 ------------------- 4 files changed, 96 deletions(-) diff --git a/spec/matchers/greater_than_equal_matcher_spec.cr b/spec/matchers/greater_than_equal_matcher_spec.cr index cc1c6a3..c76641d 100644 --- a/spec/matchers/greater_than_equal_matcher_spec.cr +++ b/spec/matchers/greater_than_equal_matcher_spec.cr @@ -75,30 +75,6 @@ describe Spectator::Matchers::GreaterThanEqualMatcher do match_data = matcher.match(partial) match_data_value_sans_prefix(match_data.values, :actual)[:value].should eq(actual) end - - context "when #matched? is true" do - it "is prefixed with >=" do - actual = 777 - expected = 42 - partial = new_partial(actual) - matcher = Spectator::Matchers::GreaterThanEqualMatcher.new(expected) - match_data = matcher.match(partial) - match_data.matched?.should be_true # Sanity check. - match_data_value_sans_prefix(match_data.values, :actual)[:to_s].should start_with(">=") - end - end - - context "when #matched? is false" do - it "is prefixed with <" do - actual = 42 - expected = 777 - partial = new_partial(actual) - matcher = Spectator::Matchers::GreaterThanEqualMatcher.new(expected) - match_data = matcher.match(partial) - match_data.matched?.should be_false # Sanity check. - match_data_value_sans_prefix(match_data.values, :actual)[:to_s].should start_with("<") - end - end end end diff --git a/spec/matchers/greater_than_matcher_spec.cr b/spec/matchers/greater_than_matcher_spec.cr index bcd2a57..1375cff 100644 --- a/spec/matchers/greater_than_matcher_spec.cr +++ b/spec/matchers/greater_than_matcher_spec.cr @@ -75,30 +75,6 @@ describe Spectator::Matchers::GreaterThanMatcher do match_data = matcher.match(partial) match_data_value_sans_prefix(match_data.values, :actual)[:value].should eq(actual) end - - context "when #matched? is true" do - it "is prefixed with >" do - actual = 777 - expected = 42 - partial = new_partial(actual) - matcher = Spectator::Matchers::GreaterThanMatcher.new(expected) - match_data = matcher.match(partial) - match_data.matched?.should be_true # Sanity check. - match_data_value_sans_prefix(match_data.values, :actual)[:to_s].should start_with(">") - end - end - - context "when #matched? is false" do - it "is prefixed with <=" do - actual = 42 - expected = 777 - partial = new_partial(actual) - matcher = Spectator::Matchers::GreaterThanMatcher.new(expected) - match_data = matcher.match(partial) - match_data.matched?.should be_false # Sanity check. - match_data_value_sans_prefix(match_data.values, :actual)[:to_s].should start_with("<=") - end - end end end diff --git a/spec/matchers/less_than_equal_matcher_spec.cr b/spec/matchers/less_than_equal_matcher_spec.cr index d6fd825..75d648f 100644 --- a/spec/matchers/less_than_equal_matcher_spec.cr +++ b/spec/matchers/less_than_equal_matcher_spec.cr @@ -75,30 +75,6 @@ describe Spectator::Matchers::LessThanEqualMatcher do match_data = matcher.match(partial) match_data_value_sans_prefix(match_data.values, :actual)[:value].should eq(actual) end - - context "when #matched? is true" do - it "is prefixed with <=" do - actual = 42 - expected = 777 - partial = new_partial(actual) - matcher = Spectator::Matchers::LessThanEqualMatcher.new(expected) - match_data = matcher.match(partial) - match_data.matched?.should be_true # Sanity check. - match_data_value_sans_prefix(match_data.values, :actual)[:to_s].should start_with("<=") - end - end - - context "when #matched? is false" do - it "is prefixed with >" do - actual = 777 - expected = 42 - partial = new_partial(actual) - matcher = Spectator::Matchers::LessThanEqualMatcher.new(expected) - match_data = matcher.match(partial) - match_data.matched?.should be_false # Sanity check. - match_data_value_sans_prefix(match_data.values, :actual)[:to_s].should start_with(">") - end - end end end diff --git a/spec/matchers/less_than_matcher_spec.cr b/spec/matchers/less_than_matcher_spec.cr index 695d55a..df5acaf 100644 --- a/spec/matchers/less_than_matcher_spec.cr +++ b/spec/matchers/less_than_matcher_spec.cr @@ -75,30 +75,6 @@ describe Spectator::Matchers::LessThanMatcher do match_data = matcher.match(partial) match_data_value_sans_prefix(match_data.values, :actual)[:value].should eq(actual) end - - context "when #matched? is true" do - it "is prefixed with <" do - actual = 42 - expected = 777 - partial = new_partial(actual) - matcher = Spectator::Matchers::LessThanMatcher.new(expected) - match_data = matcher.match(partial) - match_data.matched?.should be_true # Sanity check. - match_data_value_sans_prefix(match_data.values, :actual)[:to_s].should start_with("<") - end - end - - context "when #matched? is false" do - it "is prefixed with >=" do - actual = 777 - expected = 42 - partial = new_partial(actual) - matcher = Spectator::Matchers::LessThanMatcher.new(expected) - match_data = matcher.match(partial) - match_data.matched?.should be_false # Sanity check. - match_data_value_sans_prefix(match_data.values, :actual)[:to_s].should start_with(">=") - end - end end end