More pending tests to implement

This commit is contained in:
Michael Miller 2019-01-23 23:14:34 -07:00
parent f0a972ed06
commit a869d4f23f

View file

@ -82,9 +82,17 @@ describe Spectator::RunnableExample do
run_example(PassingExample, group)
calls.should eq(\%i[a b])
end
pending "runs the hook before the test code" do
end
end
{% end %}
pending "runs before_all hooks prior to before_each hooks" do
end
{% for hook_type in %i[after_all after_each] %}
context "{{hook_type.id}} hooks" do
it "runs a hook" do
@ -136,9 +144,17 @@ describe Spectator::RunnableExample do
run_example(PassingExample, group)
calls.should eq(\%i[b a])
end
pending "runs the hook after the test code" do
end
end
{% end %}
pending "runs after_each hooks prior to after_all hooks" do
end
context "around_each hooks" do
it "runs a hook" do
called = false
@ -191,6 +207,14 @@ describe Spectator::RunnableExample do
end
end
pending "runs around_each hooks after to before hooks" do
end
pending "runs around_each hooks prior to after hooks" do
end
{% for condition in %i[pre post] %}
context "{{condition.id}}-conditions" do
it "checks a single condition" do
@ -258,6 +282,18 @@ describe Spectator::RunnableExample do
end
{% end %}
pending "runs before hooks prior to pre-conditions" do
end
pending "runs around_each hooks prior to pre-conditions" do
end
pending "runs post-conditions prior to after hooks" do
end
context "failing pre-condition" do
pending "fails the test" do
@ -371,9 +407,17 @@ describe Spectator::RunnableExample do
run_example(FailingExample, group)
calls.should eq(\%i[a b])
end
pending "runs the hook before the test code" do
end
end
{% end %}
pending "runs before_all hooks prior to before_each hooks" do
end
{% for hook_type in %i[after_all after_each] %}
context "{{hook_type.id}} hooks" do
it "runs a hook" do
@ -425,9 +469,17 @@ describe Spectator::RunnableExample do
run_example(FailingExample, group)
calls.should eq(\%i[b a])
end
pending "runs the hook after the test code" do
end
end
{% end %}
pending "runs after_each hooks prior to after_all hooks" do
end
context "around_each hooks" do
it "runs a hook" do
called = false
@ -480,6 +532,14 @@ describe Spectator::RunnableExample do
end
end
pending "runs around_each hooks after to before hooks" do
end
pending "runs around_each hooks prior to after hooks" do
end
context "pre-conditions" do
it "checks a single condition" do
called = false
@ -532,6 +592,18 @@ describe Spectator::RunnableExample do
end
end
pending "runs before hooks prior to pre-conditions" do
end
pending "runs around_each hooks prior to pre-conditions" do
end
pending "runs post-conditions prior to after hooks" do
end
context "failing pre-condition" do
pending "fails the test" do
@ -633,9 +705,17 @@ describe Spectator::RunnableExample do
run_example(ErroredExample, group)
calls.should eq(\%i[a b])
end
pending "runs the hook before the test code" do
end
end
{% end %}
pending "runs before_all hooks prior to before_each hooks" do
end
{% for hook_type in %i[after_all after_each] %}
context "{{hook_type.id}} hooks" do
it "runs a hook" do
@ -687,9 +767,17 @@ describe Spectator::RunnableExample do
run_example(ErroredExample, group)
calls.should eq(\%i[b a])
end
pending "runs the hook after the test code" do
end
end
{% end %}
pending "runs after_each hooks prior to after_all hooks" do
end
context "around_each hooks" do
it "runs a hook" do
called = false
@ -742,6 +830,14 @@ describe Spectator::RunnableExample do
end
end
pending "runs around_each hooks after to before hooks" do
end
pending "runs around_each hooks prior to after hooks" do
end
context "pre-conditions" do
it "checks a single condition" do
called = false
@ -794,6 +890,18 @@ describe Spectator::RunnableExample do
end
end
pending "runs before hooks prior to pre-conditions" do
end
pending "runs around_each hooks prior to pre-conditions" do
end
pending "runs post-conditions prior to after hooks" do
end
context "failing pre-condition" do
pending "fails the test" do