mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Update or remove tests using result predicate methods
This commit is contained in:
parent
8dd8db74b9
commit
5722d18db9
5 changed files with 2 additions and 98 deletions
|
@ -15,7 +15,7 @@ describe Spectator::Internals::Harness do
|
|||
it "returns a passing result" do
|
||||
example = PassingExample.create
|
||||
result = Spectator::Internals::Harness.run(example)
|
||||
result.passed?.should be_true
|
||||
result.should be_a(Spectator::SuccessfulResult)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -23,7 +23,7 @@ describe Spectator::Internals::Harness do
|
|||
it "returns a failing result" do
|
||||
example = FailingExample.create
|
||||
result = Spectator::Internals::Harness.run(example)
|
||||
result.passed?.should be_false
|
||||
result.should be_a(Spectator::FailedResult)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue