Last active
February 10, 2017 09:34
-
-
Save chrischambers/f1f92bdfeea8ea4c912110b02786ba27 to your computer and use it in GitHub Desktop.
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
Acceptance | Login | |
an unauthenticated user | |
TestLoader Failures | |
"before each" hook for "doge/tests/acceptance/foo-test: could not be loaded" ‣ | |
TypeError: Cannot read property 'create' of undefined | |
at assets/test-support.js:22802:36 | |
at Backburner.run (assets/vendor.js:19156:25) | |
at Object.run (assets/vendor.js:42590:27) | |
at _default.createApplication (assets/test-support.js:22801:27) | |
at _default.setupContext (assets/test-support.js:22781:110) | |
at assets/test-support.js:22472:28 | |
at Object.initializePromise (assets/vendor.js:69866:7) | |
at new Promise (assets/vendor.js:71461:21) | |
at nextStep (assets/test-support.js:22471:20) | |
at _default.invokeSteps (assets/test-support.js:22478:16) | |
"after each" hook for "doge/tests/acceptance/foo-test: could not be loaded" ‣ | |
TypeError: Cannot read property 'application' of undefined | |
at assets/test-support.js:22787:57 | |
at Backburner.run (assets/vendor.js:19156:25) | |
at Object.run (assets/vendor.js:42590:27) | |
at _default.teardownContext (assets/test-support.js:22786:27) | |
at assets/test-support.js:22472:28 | |
at Object.initializePromise (assets/vendor.js:69866:7) | |
at new Promise (assets/vendor.js:71461:21) | |
at nextStep (assets/test-support.js:22471:20) | |
at _default.invokeSteps (assets/test-support.js:22478:16) | |
at assets/test-support.js:22436:25 |
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 { describe, it, beforeEach, afterEach } from 'mocha' | |
import { expect } from 'chai' | |
import startApp from 'doge/tests/helpers/start-app' | |
import destroyApp from 'doge/tests/helpers/destroy-app' | |
import { setupAcceptanceTest } from 'ember-mocha' | |
import App from 'doge/app' | |
let Application = App.extend({ | |
rootElement: '#ember-testing', | |
}); | |
describe('Acceptance | Login', function() { | |
let application | |
setupAcceptanceTest({ Application }) | |
beforeEach(function() { | |
application = startApp() | |
}) | |
afterEach(function() { | |
destroyApp(application) | |
}) | |
context('an unauthenticated user', function() { | |
server.create('engagement') | |
visit('/engagement/1') | |
it('should be redirected to the login page', function() { | |
visit('/foo') | |
return andThen(() => { | |
currentURL().should.equal('/foo') | |
}) | |
}) | |
it('should be redirected to the desired url after authenticating') | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment