mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Add specify
to DSL
This commit is contained in:
parent
0c284b6713
commit
e746ede287
1 changed files with 7 additions and 0 deletions
|
@ -1364,6 +1364,13 @@ module Spectator::DSL
|
|||
::Spectator::DSL::Builder.add_example(Example%example)
|
||||
end
|
||||
|
||||
# An alternative way to write an example.
|
||||
# This is identical to `#it`,
|
||||
# except that it doesn't take a "what" argument.
|
||||
macro specify(&block)
|
||||
it({{block.body.stringify}}) {{block}}
|
||||
end
|
||||
|
||||
# Creates an example, or a test case, that does not run.
|
||||
# This can be used to prototype functionality that isn't ready.
|
||||
# The `what` argument describes "what" is being tested or asserted.
|
||||
|
|
Loading…
Reference in a new issue