Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #108 from blimmer/add-instance-initializer-blueprint
Browse files Browse the repository at this point in the history
Add instance initializer blueprint.
  • Loading branch information
rwjblue committed Apr 28, 2016
2 parents 06627b8 + 282b271 commit 99f5fad
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/* jshint expr:true */
import { expect } from 'chai';
import {
describe,
it,
beforeEach
} from 'mocha';
import Ember from 'ember';
import { initialize } from '<%= dasherizedPackageName %>/instance-initializers/<%= dasherizedModuleName %>';

describe('<%= classifiedModuleName %>InstanceInitializer', function() {
let appInstance;

beforeEach(function() {
Ember.run(function() {
const application = Ember.Application.create();
appInstance = application.buildInstance();
});
});

// Replace this with your real tests.
it('works', function() {
initialize(appInstance);

// you would normally confirm the results of the initializer here
expect(true).to.be.ok;
});
});
3 changes: 3 additions & 0 deletions blueprints/instance-initializer-test/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
description: 'Generates an instance initializer unit test.'
};

0 comments on commit 99f5fad

Please sign in to comment.