mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
More pending tests to implement
This commit is contained in:
parent
f0a972ed06
commit
a869d4f23f
1 changed files with 108 additions and 0 deletions
|
@ -82,9 +82,17 @@ describe Spectator::RunnableExample do
|
||||||
run_example(PassingExample, group)
|
run_example(PassingExample, group)
|
||||||
calls.should eq(\%i[a b])
|
calls.should eq(\%i[a b])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
pending "runs the hook before the test code" do
|
||||||
|
|
||||||
|
end
|
||||||
end
|
end
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
|
pending "runs before_all hooks prior to before_each hooks" do
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
{% for hook_type in %i[after_all after_each] %}
|
{% for hook_type in %i[after_all after_each] %}
|
||||||
context "{{hook_type.id}} hooks" do
|
context "{{hook_type.id}} hooks" do
|
||||||
it "runs a hook" do
|
it "runs a hook" do
|
||||||
|
@ -136,9 +144,17 @@ describe Spectator::RunnableExample do
|
||||||
run_example(PassingExample, group)
|
run_example(PassingExample, group)
|
||||||
calls.should eq(\%i[b a])
|
calls.should eq(\%i[b a])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
pending "runs the hook after the test code" do
|
||||||
|
|
||||||
|
end
|
||||||
end
|
end
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
|
pending "runs after_each hooks prior to after_all hooks" do
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
context "around_each hooks" do
|
context "around_each hooks" do
|
||||||
it "runs a hook" do
|
it "runs a hook" do
|
||||||
called = false
|
called = false
|
||||||
|
@ -191,6 +207,14 @@ describe Spectator::RunnableExample do
|
||||||
end
|
end
|
||||||
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] %}
|
{% for condition in %i[pre post] %}
|
||||||
context "{{condition.id}}-conditions" do
|
context "{{condition.id}}-conditions" do
|
||||||
it "checks a single condition" do
|
it "checks a single condition" do
|
||||||
|
@ -258,6 +282,18 @@ describe Spectator::RunnableExample do
|
||||||
end
|
end
|
||||||
{% 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
|
context "failing pre-condition" do
|
||||||
pending "fails the test" do
|
pending "fails the test" do
|
||||||
|
|
||||||
|
@ -371,9 +407,17 @@ describe Spectator::RunnableExample do
|
||||||
run_example(FailingExample, group)
|
run_example(FailingExample, group)
|
||||||
calls.should eq(\%i[a b])
|
calls.should eq(\%i[a b])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
pending "runs the hook before the test code" do
|
||||||
|
|
||||||
|
end
|
||||||
end
|
end
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
|
pending "runs before_all hooks prior to before_each hooks" do
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
{% for hook_type in %i[after_all after_each] %}
|
{% for hook_type in %i[after_all after_each] %}
|
||||||
context "{{hook_type.id}} hooks" do
|
context "{{hook_type.id}} hooks" do
|
||||||
it "runs a hook" do
|
it "runs a hook" do
|
||||||
|
@ -425,9 +469,17 @@ describe Spectator::RunnableExample do
|
||||||
run_example(FailingExample, group)
|
run_example(FailingExample, group)
|
||||||
calls.should eq(\%i[b a])
|
calls.should eq(\%i[b a])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
pending "runs the hook after the test code" do
|
||||||
|
|
||||||
|
end
|
||||||
end
|
end
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
|
pending "runs after_each hooks prior to after_all hooks" do
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
context "around_each hooks" do
|
context "around_each hooks" do
|
||||||
it "runs a hook" do
|
it "runs a hook" do
|
||||||
called = false
|
called = false
|
||||||
|
@ -480,6 +532,14 @@ describe Spectator::RunnableExample do
|
||||||
end
|
end
|
||||||
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
|
context "pre-conditions" do
|
||||||
it "checks a single condition" do
|
it "checks a single condition" do
|
||||||
called = false
|
called = false
|
||||||
|
@ -532,6 +592,18 @@ describe Spectator::RunnableExample do
|
||||||
end
|
end
|
||||||
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
|
context "failing pre-condition" do
|
||||||
pending "fails the test" do
|
pending "fails the test" do
|
||||||
|
|
||||||
|
@ -633,9 +705,17 @@ describe Spectator::RunnableExample do
|
||||||
run_example(ErroredExample, group)
|
run_example(ErroredExample, group)
|
||||||
calls.should eq(\%i[a b])
|
calls.should eq(\%i[a b])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
pending "runs the hook before the test code" do
|
||||||
|
|
||||||
|
end
|
||||||
end
|
end
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
|
pending "runs before_all hooks prior to before_each hooks" do
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
{% for hook_type in %i[after_all after_each] %}
|
{% for hook_type in %i[after_all after_each] %}
|
||||||
context "{{hook_type.id}} hooks" do
|
context "{{hook_type.id}} hooks" do
|
||||||
it "runs a hook" do
|
it "runs a hook" do
|
||||||
|
@ -687,9 +767,17 @@ describe Spectator::RunnableExample do
|
||||||
run_example(ErroredExample, group)
|
run_example(ErroredExample, group)
|
||||||
calls.should eq(\%i[b a])
|
calls.should eq(\%i[b a])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
pending "runs the hook after the test code" do
|
||||||
|
|
||||||
|
end
|
||||||
end
|
end
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
|
pending "runs after_each hooks prior to after_all hooks" do
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
context "around_each hooks" do
|
context "around_each hooks" do
|
||||||
it "runs a hook" do
|
it "runs a hook" do
|
||||||
called = false
|
called = false
|
||||||
|
@ -742,6 +830,14 @@ describe Spectator::RunnableExample do
|
||||||
end
|
end
|
||||||
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
|
context "pre-conditions" do
|
||||||
it "checks a single condition" do
|
it "checks a single condition" do
|
||||||
called = false
|
called = false
|
||||||
|
@ -794,6 +890,18 @@ describe Spectator::RunnableExample do
|
||||||
end
|
end
|
||||||
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
|
context "failing pre-condition" do
|
||||||
pending "fails the test" do
|
pending "fails the test" do
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue