     setupFunction = o(thing).firstThat (arg) -> o(arg).isFunction()
     assignResultTo = o(thing).firstThat (arg) -> o(arg).isString()
     doneWrapperFor setupFunction, (done) ->
-      context = jasmine.getEnv().currentSpec
+      context = currentSpec
       result = setupFunction.call(context, done)
       if assignResultTo
         unless context[assignResultTo]

  mostRecentlyUsed = null

  root = @

  root.Given = ->
    mostRecentlyUsed = root.Given


  evalInContextOfSpec = (operand) ->
    try
      (-> eval(operand)).call(currentSpec)
    catch e
      "<Error: \"#{e?.message?() || e}\">"

