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 ->)
|
||||
@@builder.add_example(*args, &block)
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue