mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Remove tests that had a prefixed actual value
This commit is contained in:
parent
66ac2eb080
commit
2b71400d9a
4 changed files with 0 additions and 96 deletions
|
@ -75,30 +75,6 @@ describe Spectator::Matchers::GreaterThanEqualMatcher do
|
||||||
match_data = matcher.match(partial)
|
match_data = matcher.match(partial)
|
||||||
match_data_value_sans_prefix(match_data.values, :actual)[:value].should eq(actual)
|
match_data_value_sans_prefix(match_data.values, :actual)[:value].should eq(actual)
|
||||||
end
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -75,30 +75,6 @@ describe Spectator::Matchers::GreaterThanMatcher do
|
||||||
match_data = matcher.match(partial)
|
match_data = matcher.match(partial)
|
||||||
match_data_value_sans_prefix(match_data.values, :actual)[:value].should eq(actual)
|
match_data_value_sans_prefix(match_data.values, :actual)[:value].should eq(actual)
|
||||||
end
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -75,30 +75,6 @@ describe Spectator::Matchers::LessThanEqualMatcher do
|
||||||
match_data = matcher.match(partial)
|
match_data = matcher.match(partial)
|
||||||
match_data_value_sans_prefix(match_data.values, :actual)[:value].should eq(actual)
|
match_data_value_sans_prefix(match_data.values, :actual)[:value].should eq(actual)
|
||||||
end
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -75,30 +75,6 @@ describe Spectator::Matchers::LessThanMatcher do
|
||||||
match_data = matcher.match(partial)
|
match_data = matcher.match(partial)
|
||||||
match_data_value_sans_prefix(match_data.values, :actual)[:value].should eq(actual)
|
match_data_value_sans_prefix(match_data.values, :actual)[:value].should eq(actual)
|
||||||
end
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue