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

    for expectation, i in expectations
      do (expectation, i) ->
        doneWrapperFor expectation, (maybeDone) ->
          expect(expectation).not.toHaveReturnedFalseFromThen(jasmine.getEnv().currentSpec, i + 1, maybeDone)

  doneWrapperFor = (func, toWrap) ->
    if func.length == 0

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