Skip to content

Instantly share code, notes, and snippets.

@jimsynz
Created April 17, 2012 20:54
Show Gist options
  • Save jimsynz/2408992 to your computer and use it in GitHub Desktop.
Save jimsynz/2408992 to your computer and use it in GitHub Desktop.
Error: In features/step_definitions/inMemoryAdapter.coffee, Parse error on line 10: Unexpected 'POST_IF'
at Object.parseError (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/parser.js:473:11)
at Object.parse (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/parser.js:522:22)
at Object.compile (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:43:20)
at /usr/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:182:33
at /usr/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:152:18
at [object Object].<anonymous> (fs.js:123:5)
at [object Object].emit (events.js:64:17)
at Object.oncomplete (fs.js:1181:12)
path = require 'path'
inMemoryAdapterWrapper = ->
@World = require('../support/world').World
@Given /^an ember app is loaded in the browser$/, (callback)->
#@visit("file://#{path.resolve '../../public/index.html'}", callback)
@visit 'http://localhost:3000/', (success)->
if success
callback()
else
callback.fail "Couldn't load site"
@Given /^a document exists$/, (callback)->
callback.pending()
@Given /^a bunch of documents exist$/, (callback)->
callback.pending()
@Given /^a new document$/, (callback)->
callback.pending()
@Given /^a bunch of new documents$/, (callback)->
callback.pending()
@When /^I (.+) for (.+)$/, (callback)->
callback.pending()
@When /^I change (.+) data$/, (callback)->
callback.pending()
@When /^I (\w+) (\w+)$/, (callback)->
callback.pending()
@Then /^(\w+) should (.+)$/, (callback)->
callback.pending()
module.exports = inMemoryAdapterWrapper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment