diff --git a/spec/errored_result_spec.cr b/spec/errored_result_spec.cr index 0408463..41c7405 100644 --- a/spec/errored_result_spec.cr +++ b/spec/errored_result_spec.cr @@ -15,30 +15,6 @@ def new_errored_result( end describe Spectator::ErroredResult do - describe "#errored?" do - it "is true" do - new_errored_result.errored?.should be_true - end - end - - describe "#passed?" do - it "is false" do - new_errored_result.passed?.should be_false - end - end - - describe "#failed?" do - it "is true" do - new_errored_result.failed?.should be_true - end - end - - describe "#pending?" do - it "is false" do - new_errored_result.pending?.should be_false - end - end - describe "#example" do it "is the expected value" do example = FailingExample.create diff --git a/spec/failed_result_spec.cr b/spec/failed_result_spec.cr index b68edb9..336b791 100644 --- a/spec/failed_result_spec.cr +++ b/spec/failed_result_spec.cr @@ -15,30 +15,6 @@ def new_failed_result( end describe Spectator::FailedResult do - describe "#passed?" do - it "is false" do - new_failed_result.passed?.should be_false - end - end - - describe "#failed?" do - it "is true" do - new_failed_result.failed?.should be_true - end - end - - describe "#errored?" do - it "is false" do - new_failed_result.errored?.should be_false - end - end - - describe "#pending?" do - it "is false" do - new_failed_result.pending?.should be_false - end - end - describe "#example" do it "is the expected value" do example = FailingExample.create diff --git a/spec/internals/harness_spec.cr b/spec/internals/harness_spec.cr index 94452a4..9074c18 100644 --- a/spec/internals/harness_spec.cr +++ b/spec/internals/harness_spec.cr @@ -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 diff --git a/spec/pending_result_spec.cr b/spec/pending_result_spec.cr index 1eaae89..7d8b37f 100644 --- a/spec/pending_result_spec.cr +++ b/spec/pending_result_spec.cr @@ -5,30 +5,6 @@ def new_pending_result(example : Spectator::Example? = nil) end describe Spectator::PendingResult do - describe "#pending?" do - it "is true" do - new_pending_result.pending?.should be_true - end - end - - describe "#passed?" do - it "is false" do - new_pending_result.passed?.should be_false - end - end - - describe "#failed?" do - it "is false" do - new_pending_result.failed?.should be_false - end - end - - describe "#errored?" do - it "is false" do - new_pending_result.errored?.should be_false - end - end - describe "#example" do it "is the expected value" do example = PassingExample.create diff --git a/spec/successful_result_spec.cr b/spec/successful_result_spec.cr index b6a40d4..92e7b32 100644 --- a/spec/successful_result_spec.cr +++ b/spec/successful_result_spec.cr @@ -13,30 +13,6 @@ def new_successful_result( end describe Spectator::SuccessfulResult do - describe "#passed?" do - it "is true" do - new_successful_result.passed?.should be_true - end - end - - describe "#failed?" do - it "is false" do - new_successful_result.failed?.should be_false - end - end - - describe "#errored?" do - it "is false" do - new_successful_result.errored?.should be_false - end - end - - describe "#pending?" do - it "is false" do - new_successful_result.pending?.should be_false - end - end - describe "#example" do it "is the expected value" do example = PassingExample.create