Skip to content

Instantly share code, notes, and snippets.

@cball
Created August 18, 2016 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cball/99073a884808ce620d8744a21ae2b17d to your computer and use it in GitHub Desktop.
Save cball/99073a884808ce620d8744a21ae2b17d to your computer and use it in GitHub Desktop.
Default ember-cli-mocha acceptance test blueprint
// tests/acceptance/user-should-something.js
import {
describe,
it,
beforeEach,
afterEach
} from 'mocha';
import { expect } from 'chai';
import startApp from '../helpers/start-app';
import destroyApp from '../helpers/destroy-app';
describe('Acceptance: UserShouldSomething', function() {
let application;
beforeEach(function() {
application = startApp();
});
afterEach(function() {
destroyApp(application);
});
it('can visit /user-should-something', function() {
visit('/user-should-something');
andThen(function() {
expect(currentPath()).to.equal('user-should-something');
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment