Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Commit

Permalink
fix(test): Updated tests for new prompt
Browse files Browse the repository at this point in the history
Close #238
  • Loading branch information
passy committed Jun 20, 2013
1 parent 9e899bb commit 64e5757
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions test/test-file-creation.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ describe('Angular generator', function () {
});

it('should generate dotfiles', function (done) {
helpers.mockPrompt(angular, {'bootstrap': 'Y', 'compassBoostrap': 'Y'});
helpers.mockPrompt(angular, {
bootstrap: true,
compassBoostrap: true
});

angular.run({}, function () {
helpers.assertFiles(['.bowerrc', '.gitignore', '.editorconfig', '.jshintrc']);
Expand All @@ -56,7 +59,10 @@ describe('Angular generator', function () {
'app/scripts/controllers/main.js',
'test/spec/controllers/main.js'
];
helpers.mockPrompt(angular, {'bootstrap': 'Y', 'compassBoostrap': 'Y'});
helpers.mockPrompt(angular, {
bootstrap: true,
compassBoostrap: true
});

angular.run({}, function() {
helpers.assertFiles(expected);
Expand All @@ -80,7 +86,10 @@ describe('Angular generator', function () {
'app/scripts/controllers/main.coffee',
'test/spec/controllers/main.coffee'
];
helpers.mockPrompt(angular, {'bootstrap': 'Y', 'compassBoostrap': 'Y'});
helpers.mockPrompt(angular, {
bootstrap: true,
compassBoostrap: true
});

angular.env.options.coffee = true;
angular.run([], function () {
Expand All @@ -95,7 +104,10 @@ describe('Angular generator', function () {
var deps = ['../../controller'];
angularCtrl = helpers.createGenerator('angular:controller', deps, ['foo']);

helpers.mockPrompt(angular, {'bootstrap': 'Y', 'compassBoostrap': 'Y'});
helpers.mockPrompt(angular, {
bootstrap: true,
compassBoostrap: true
});
angular.run([], function () {
angularCtrl.run([], function () {
helpers.assertFiles([
Expand All @@ -114,7 +126,10 @@ describe('Angular generator', function () {
var deps = ['../../view'];
angularView = helpers.createGenerator('angular:view', deps, ['foo']);

helpers.mockPrompt(angular, {'bootstrap': 'Y', 'compassBoostrap': 'Y'});
helpers.mockPrompt(angular, {
bootstrap: true,
compassBoostrap: true
});
angular.run([], function (){
angularView.run([], function () {
helpers.assertFiles([
Expand Down

0 comments on commit 64e5757

Please sign in to comment.