Move ROOT_CONTEXT out of Spectator module

This commit is contained in:
Michael Miller 2018-09-11 20:25:28 -06:00
parent 6f6ba9c812
commit c2ee9fd520
3 changed files with 4 additions and 4 deletions

View file

@ -2,6 +2,8 @@ require "./example"
module Spectator
class Context
ROOT = Context.new("ROOT")
getter what : String
getter parent : Context?
getter examples = [] of Example

View file

@ -4,7 +4,7 @@ module Spectator
module Examples
include ::Spectator::DSL
CURRENT_CONTEXT = Spectator::ROOT_CONTEXT
CURRENT_CONTEXT = ::Spectator::Context::ROOT
CONTEXT_MODULE = ::Spectator::Examples
GIVEN_VARIABLES = [] of Object