Skip to content

Commit

Permalink
fix(test blueprints): Prevent unwanted ember service and route test g…
Browse files Browse the repository at this point in the history
…eneration

The ember-cli generates blueprints for  when generating a new service & route
By overriding  in  it prevents the ember service & route test generation
Fixes #202
  • Loading branch information
Brocco committed Feb 18, 2016
1 parent ab42471 commit 52b1b21
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions addon/ng2/blueprints/route-test/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
var stringUtils = require('ember-cli/lib/utilities/string');

module.exports = {
description: '',

// ******************************************************
// ******************************************************
// LEAVE THIS HERE
// Must override install to prevent ember's route tests
// ******************************************************
// ******************************************************

install: function(options){}
};
14 changes: 14 additions & 0 deletions addon/ng2/blueprints/service-test/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
var stringUtils = require('ember-cli/lib/utilities/string');

module.exports = {
description: '',

// ******************************************************
// ******************************************************
// LEAVE THIS HERE
// Must override install to prevent ember's service tests
// ******************************************************
// ******************************************************

install: function(options){}
};

0 comments on commit 52b1b21

Please sign in to comment.