Allow top-level context macro

This commit is contained in:
Michael Miller 2019-04-05 18:38:57 -06:00
parent 7a0e28945a
commit c18d9c4ffd

View file

@ -47,6 +47,11 @@ module Spectator
end
end
# ditto
macro context(what, &block)
describe({{what}}) {{block}}
end
# Flag indicating whether Spectator should automatically run tests.
# This should be left alone (set to true) in typical usage.
# There are times when Spectator shouldn't run tests.