Skip to content

Instantly share code, notes, and snippets.

@Turbo87
Last active April 4, 2016 20:23
Show Gist options
  • Save Turbo87/9c696f552ca22ae43dbd62580e61dc7e to your computer and use it in GitHub Desktop.
Save Turbo87/9c696f552ca22ae43dbd62580e61dc7e to your computer and use it in GitHub Desktop.
it('route foo', function() {
return emberNew()
.then(() => emberGenerateDestroy(['route', 'foo'], (file) => {
expect(file('app/routes/foo.js'))
.to.contain('import Ember from \'ember\';')
.to.contain('export default Ember.Route.extend({\n});');
expect(file('app/templates/foo.hbs'))
.to.contain('{{outlet}}');
expect(file('tests/unit/routes/foo-test.js'))
.to.contain('import { moduleFor, test } from \'ember-qunit\';')
.to.contain('moduleFor(\'route:foo\'');
}))
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment