Skip to content

Instantly share code, notes, and snippets.

@ohcibi
Last active August 29, 2015 14:18
Show Gist options
  • Save ohcibi/01549fb98cb4563c6c1f to your computer and use it in GitHub Desktop.
Save ohcibi/01549fb98cb4563c6c1f to your computer and use it in GitHub Desktop.
`import Ember from 'ember'`
`import { module, test } from 'qunit'`
`import startApp from '../helpers/start-app'`
application = null
Ember.$.fauxjax.settings.debug = true
Ember.$.fauxjax.settings.strictMatching = false
module "Acceptance: Sessions",
beforeEach: ->
application = startApp()
Ember.$.fauxjax.new
request:
url: "/api/env"
dataType: "json"
method: "GET"
response:
content: bla: "blub"
return
afterEach: ->
Ember.run application, "destroy"
#Ember.$.fauxjax.clear()
test "visit /sessions", (assert) ->
visit "sessions"
andThen ->
assert.equal currentPath(), "sessions"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment