Skip to content

Commit

Permalink
Update initializer blueprints.
Browse files Browse the repository at this point in the history
The initializer API has changed as of 2.X, the blueprints need to be updated to address those changes. See also: emberjs/ember.js#10179
  • Loading branch information
nathanhammond committed Sep 13, 2015
1 parent 5610d35 commit c73c6f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@ import Ember from 'ember';
import { initialize } from '<%= dependencyDepth %>/initializers/<%= dasherizedModuleName %>';
import { module, test } from 'qunit';

var registry, application;
var application;

module('<%= friendlyTestName %>', {
beforeEach: function() {
Ember.run(function() {
application = Ember.Application.create();
registry = application.registry;
application.deferReadiness();
});
}
});

// Replace this with your real tests.
test('it works', function(assert) {
initialize(registry, application);
initialize.call(initialize, application);

// you would normally confirm the results of the initializer here
assert.ok(true);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function initialize(/* container, application */) {
export function initialize(/* application */) {
// application.inject('route', 'foo', 'service:foo');
}

Expand Down

0 comments on commit c73c6f6

Please sign in to comment.