tobiassvn/node-stories — Issue #7: error with coffeescript 
Author: amurray
Created: 2011-10-10 11:17:30+00:00
State: open

I am getting the error:

`Error eval()ing Feature contents.
SyntaxError: Illegal return statement`

when i try to run this (and variants):

Feature = require 'stories'

new Feature("Using an Array as a queue", ->

Given "An empty Array", ->
a = []

When "I add some elements", ->
a.push 1
a.push 2
a.push 3
a.push 4

And "I shift an element off the Array", ->
element = a.shift()

Then "I should get the first element from the Array", ->
assert.equal element, 1

An d "I should have the remaining elements left", ->
assert.equal a.length, 3

But "I should not have the shifted element left", ->
a.forEach (e) ->
assert.notEqual e, element
)

any ideas? thanks