 
-createEnv = (block, context) ->
+exports.createEnv = (block, context) ->
   env = spectacular.env.clone()
   env.options.noColors = true
   spyOn(env.runner, 'loadSpecs').andCallFake -> do block

    oldEnv.load()
    async.reject reason

runEnvExpectingInterruption = (env, context, async) ->
  oldEnv = spectacular.env
  env.run()
  .then (status) =>

    context.results = @buildResults.apply this, arguments
  env

exports.runEnvExpectingNormalTermination = (env, context, async) ->
  oldEnv = spectacular.env
  env.run()
  .then (status) ->
