mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Remove code for running examples
Preparing to add runner.
This commit is contained in:
parent
6371fa5856
commit
cf789f54be
2 changed files with 0 additions and 14 deletions
|
@ -13,10 +13,6 @@ module Spectator
|
||||||
{% debug %}
|
{% debug %}
|
||||||
end
|
end
|
||||||
|
|
||||||
macro _spec_add_example(example)
|
|
||||||
{{example.id}}.run
|
|
||||||
end
|
|
||||||
|
|
||||||
at_exit do
|
at_exit do
|
||||||
# TODO
|
# TODO
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
require "./example_group"
|
require "./example_group"
|
||||||
|
|
||||||
private macro _spec_add_example(example)
|
|
||||||
@examples << example
|
|
||||||
end
|
|
||||||
|
|
||||||
module Spectator
|
module Spectator
|
||||||
module DSL
|
module DSL
|
||||||
macro describe(what, type = "Describe", &block)
|
macro describe(what, type = "Describe", &block)
|
||||||
|
@ -37,7 +33,6 @@ module Spectator
|
||||||
{{block.body}}
|
{{block.body}}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
::Spectator._spec_add_example({{class_name.id}}.new)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def it_behaves_like
|
def it_behaves_like
|
||||||
|
@ -97,10 +92,5 @@ module Spectator
|
||||||
def include_examples
|
def include_examples
|
||||||
raise NotImplementedError.new("Spectator::DSL#include_examples")
|
raise NotImplementedError.new("Spectator::DSL#include_examples")
|
||||||
end
|
end
|
||||||
|
|
||||||
# :nodoc:
|
|
||||||
protected def _spec_build
|
|
||||||
ExampleGroup.new(@examples)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue