Add specify to DSL

This commit is contained in:
Michael Miller 2019-01-23 21:56:02 -07:00
parent 0c284b6713
commit e746ede287

View file

@ -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.