Update or remove tests using result predicate methods

This commit is contained in:
Michael Miller 2019-02-17 13:35:24 -07:00
parent 8dd8db74b9
commit 5722d18db9
5 changed files with 2 additions and 98 deletions

View file

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