Skip to content

Commit

Permalink
Merge pull request #3976 from ember-cli/relative-require
Browse files Browse the repository at this point in the history
Relative require
  • Loading branch information
stefanpenner committed Apr 29, 2015
2 parents d3f084a + d75b389 commit a95ea24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/models/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ Project.prototype.bowerDependencies = function(bower) {
*/
Project.prototype.supportedInternalAddonPaths = function(){
if (!this.root) { return []; }
var internalMiddlewarePath = path.join(this.root, path.relative(this.root, path.join(__dirname, '../tasks/server/middleware')));

var internalMiddlewarePath = path.join(__dirname, '../tasks/server/middleware');

return [
path.join(internalMiddlewarePath, 'tests-server'),
Expand Down Expand Up @@ -324,6 +325,7 @@ Project.prototype.initializeAddons = function() {
debug('initializeAddons for: %s', this.name());

this.discoverAddons();

this.addons = this.addonsFactory.initializeAddons(this.addonPackages);

this.addons.forEach(function(addon) {
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/tasks/server/express-server-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ describe('express-server', function() {
});

describe('output', function() {
this.timeout(40000);

it('with proxy', function() {
return subject.start({
proxy: 'http://localhost:3001/',
Expand Down

0 comments on commit a95ea24

Please sign in to comment.