gfxmonk/coffee-spec — Issue #2: 'describe is not defined' error
Author: lorensr
Created: 2011-10-20 05:10:24+00:00
State: open

```
git clone https://github.com/gfxmonk/coffee-spec.git
cd coffee-spec/
make link
mkdir ../foo/
cd ../foo/
mkdir test
echo "describe 'addition', ->
it 'should work', ->
equal 2, 1+1
" > test/math.coffee
echo "task 'test', ->
spec = require 'coffee-spec'
spec.run 'test', verbose: true
" > Cakefile
cake test
```

gives

```
test/test.coffee:

/Users/me/node_modules/coffee-script/lib/coffee-script.js:114
return Script.runInContext(js, sandbox);
^
ReferenceError: describe is not defined
at [object Context]:1:1
at Object.eval (/Users/me/node_modules/coffee-script/lib/coffee-script.js:114:21)
at /Users/me/code/old/coffee-spec/lib/coffee-spec.js:119:25
at /Users/me/code/old/coffee-spec/lib/coffee-spec.js:210:11
at /Users/me/code/old/coffee-spec/lib/coffee-spec.js:214:14
at Object.run (/Users/me/code/old/coffee-spec/lib/coffee-spec.js:219:14)
at Object.action (/Users/me/code/ot/Cakefile:5:17)
at /Users/me/node_modules/coffee-script/lib/cake.js:31:26
at /Users/me/node_modules/coffee-script/lib/cake.js:53:23
at path.js:292:19
```