Skip to content

Instantly share code, notes, and snippets.

@ianderse
Created June 19, 2015 17:27
Show Gist options
  • Save ianderse/24f52d44c09c69274569 to your computer and use it in GitHub Desktop.
Save ianderse/24f52d44c09c69274569 to your computer and use it in GitHub Desktop.
Ember Coffeescript Failing Test
`import Ember from 'ember'`
`import { module, test } from 'qunit'`
`import startApp from '../helpers/start-app'`
application = null
module 'Acceptance: Find',
beforeEach: ->
application = startApp()
###
Don't return as Ember.Application.then is deprecated.
Newer version of QUnit uses the return value's .then
function to wait for promises if it exists.
###
return
afterEach: ->
Ember.run application, 'destroy'
test 'visiting /find', (assert) ->
visit '/find'
andThen ->
assert.equal currentURL(), '/find'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment