     for expectation, i in expectations
       do (expectation, i) ->
         doneWrapperFor expectation, (maybeDone) ->
-          expect(expectation).not.toHaveReturnedFalseFromThen(jasmine.getEnv().currentSpec, i + 1, maybeDone)
+          expect(expectation).not.toHaveReturnedFalseFromThen(currentSpec, i + 1, maybeDone)
 
   doneWrapperFor = (func, toWrap) ->
     if func.length == 0


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


  mostRecentlyUsed = null

  root = @

  currentSpec = null
  beforeEach ->
    currentSpec = this

  root.Given = ->
    mostRecentlyUsed = root.Given
