Remove tests that had a prefixed actual value

This commit is contained in:
Michael Miller 2019-03-22 13:05:24 -06:00
parent 66ac2eb080
commit 2b71400d9a
4 changed files with 0 additions and 96 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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