forked from ember-cli/ember-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5501345
commit 6d3d2d5
Showing
3 changed files
with
58 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
'use strict'; | ||
|
||
var Promise = require('../../lib/ext/promise'); | ||
var path = require('path'); | ||
var fs = require('fs-extra'); | ||
var remove = Promise.denodeify(fs.remove); | ||
var addonName = 'some-cool-addon'; | ||
var spawn = require('child_process').spawn; | ||
var chalk = require('chalk'); | ||
var expect = require('chai').expect; | ||
|
||
var symlinkOrCopySync = require('symlink-or-copy').sync; | ||
var runCommand = require('../helpers/run-command'); | ||
var ember = require('../helpers/ember'); | ||
var copyFixtureFiles = require('../helpers/copy-fixture-files'); | ||
var killCliProcess = require('../helpers/kill-cli-process'); | ||
var assertDirEmpty = require('../helpers/assert-dir-empty'); | ||
var acceptance = require('../helpers/acceptance'); | ||
var createTestTargets = acceptance.createTestTargets; | ||
var teardownTestTargets = acceptance.teardownTestTargets; | ||
var linkDependencies = acceptance.linkDependencies; | ||
var cleanupRun = acceptance.cleanupRun; | ||
|
||
describe('Acceptance: addon-smoke-test', function() { | ||
this.timeout(450000); | ||
|
||
before(function() { | ||
return createTestTargets(addonName, { | ||
command: 'addon' | ||
}); | ||
}); | ||
|
||
after(function() { | ||
return teardownTestTargets(); | ||
}); | ||
|
||
beforeEach(function() { | ||
return linkDependencies(addonName); | ||
}); | ||
|
||
afterEach(function() { | ||
return cleanupRun().then(function() { | ||
assertDirEmpty('tmp'); | ||
}); | ||
}); | ||
|
||
it('can add modules via `{{content-for "head"}}`', function() { | ||
return copyFixtureFiles('addon/content-for-head') | ||
.then(function() { | ||
return ember(['test']); | ||
}) | ||
.then(function(result) { | ||
expect(result.exitCode).to.eql(0); | ||
}); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters