Created
June 19, 2015 17:27
-
-
Save ianderse/24f52d44c09c69274569 to your computer and use it in GitHub Desktop.
Ember Coffeescript Failing Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`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