mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Forward build method
This commit is contained in:
parent
4567162459
commit
543df88d39
1 changed files with 9 additions and 0 deletions
|
@ -33,5 +33,14 @@ module Spectator::DSL
|
||||||
def add_example(*args, &block : Example, Context ->)
|
def add_example(*args, &block : Example, Context ->)
|
||||||
@@builder.add_example(*args, &block)
|
@@builder.add_example(*args, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Constructs the test spec.
|
||||||
|
# Returns the spec instance.
|
||||||
|
#
|
||||||
|
# Raises an error if there were not symmetrical calls to `#start_group` and `#end_group`.
|
||||||
|
# This would indicate a logical error somewhere in Spectator or an extension of it.
|
||||||
|
def build : Spec
|
||||||
|
@@builder.build
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue