Skip to content

Commit

Permalink
Production build does not include factory guy
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Novak committed Dec 16, 2015
1 parent 9354614 commit 72955bf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@ module.exports = {

included: function(app) {
this._super.included(app);
this.app = app;
// need to load mockjax in development and test environment since ember tests
// can be run from browser in development mode
if (app.tests) {
app.import(app.bowerDirectory + '/jquery-mockjax/dist/jquery.mockjax.js');
}
}
},

treeFor: function(name) {
if(this.app.tests) {
return this._super.treeFor.apply(this, arguments);
}
}
};

0 comments on commit 72955bf

Please sign in to comment.