mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Allow top-level context macro
This commit is contained in:
parent
7a0e28945a
commit
c18d9c4ffd
1 changed files with 5 additions and 0 deletions
|
@ -47,6 +47,11 @@ module Spectator
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# ditto
|
||||||
|
macro context(what, &block)
|
||||||
|
describe({{what}}) {{block}}
|
||||||
|
end
|
||||||
|
|
||||||
# Flag indicating whether Spectator should automatically run tests.
|
# Flag indicating whether Spectator should automatically run tests.
|
||||||
# This should be left alone (set to true) in typical usage.
|
# This should be left alone (set to true) in typical usage.
|
||||||
# There are times when Spectator shouldn't run tests.
|
# There are times when Spectator shouldn't run tests.
|
||||||
|
|
Loading…
Reference in a new issue