Skip to content

Commit

Permalink
Revert back from all the testing of the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sondr3 committed May 23, 2016
1 parent abe1489 commit 7e5b80a
Show file tree
Hide file tree
Showing 12 changed files with 69 additions and 46 deletions.
4 changes: 2 additions & 2 deletions test/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test.before(() => {
.toPromise();
});

test.serial('generates expected files', () => {
test('generates expected files', () => {
assert.file([
'.editorconfig',
'.gitignore',
Expand All @@ -33,7 +33,7 @@ test.serial('generates expected files', () => {
]);
});

test.serial('creates package.json correctly', () => {
test('creates package.json correctly', () => {
assert.file('package.json');
[
'"name": "jekyllized"',
Expand Down
10 changes: 5 additions & 5 deletions test/boilerplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ test.before(() => {
.toPromise();
});

test.serial('creates .editorconfig', () => {
test('creates .editorconfig', () => {
assert.file('.editorconfig');
});

test.serial('creates .gitignore', () => {
test('creates .gitignore', () => {
assert.file('.gitignore');
});

test.serial('creates .gitattributes', () => {
test('creates .gitattributes', () => {
assert.file('.gitattributes');
});

test.serial('creates README.md', () => {
test('creates README.md', () => {
assert.file('README.md');
});

test.serial('README is correct', () => {
test('README is correct', () => {
[
'# README',
'> This is a great README',
Expand Down
31 changes: 27 additions & 4 deletions test/gulp.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ test.before(() => {
.toPromise();
});

test.serial('creates gulpfile', () => {
test('creates gulpfile', () => {
assert.file('gulpfile.js');
});

test.serial('creates package.json', () => {
test('creates package.json', () => {
assert.file('package.json');
});

test.serial('package.json contains correct packages', () => {
test('package.json contains correct packages', () => {
[
'"autoprefixer": "^6.2.3"',
'"browser-sync": "^2.11.0"',
Expand Down Expand Up @@ -50,7 +50,25 @@ test.serial('package.json contains correct packages', () => {
});
});

test.serial('contains default gulp tasks', () => {
test('does not create credentials files', () => {
assert.noFile([
'aws-credentials.json',
'rsync-credentials.json'
]);
});

test('does not contain uploading packages', () => {
[
'"gulp-awspublish"',
'"concurrent-transform"',
'"gulp-rsync"',
'"gulp-gh-pages"'
].forEach(pack => {
assert.noFileContent('package.json', pack);
});
});

test('contains default gulp tasks', () => {
[
'clean:assets',
'clean:images',
Expand Down Expand Up @@ -82,3 +100,8 @@ test.serial('contains default gulp tasks', () => {
assert.fileContent('gulpfile.js', 'gulp.task(\'' + task);
});
});

test('does not contain deploy task', () => {
assert.noFileContent('gulpfile.js', 'gulp.task(\'deploy\'');
});

12 changes: 6 additions & 6 deletions test/jekyll.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ test.before(() => {
.toPromise();
});

test.serial('creates Gemfile', () => {
test('creates Gemfile', () => {
assert.file('Gemfile');
});

test.serial('creates _config.yml files', () => {
test('creates _config.yml files', () => {
assert.file([
'_config.yml',
'_config.build.yml'
]);
});

test.serial('creates src directory', () => {
test('creates src directory', () => {
assert.file([
'src/404.html',
'src/about.md',
Expand All @@ -40,7 +40,7 @@ test.serial('creates src directory', () => {
]);
});

test.serial('_config.yml contains the correct settings', () => {
test('_config.yml contains the correct settings', () => {
[
'title: jekyllized',
'description: Tests for Jekyllized',
Expand All @@ -54,7 +54,7 @@ test.serial('_config.yml contains the correct settings', () => {
});
});

test.serial('_config.build.yml contains the correct settings', () => {
test('_config.build.yml contains the correct settings', () => {
[
'future: false',
'show_drafts: false',
Expand All @@ -64,6 +64,6 @@ test.serial('_config.build.yml contains the correct settings', () => {
});
});

test.serial('fills out humans.txt correctly', () => {
test('fills out humans.txt correctly', () => {
assert.fileContent('src/humans.txt', 'Ola Nordmann -- <role> -- @');
});
2 changes: 1 addition & 1 deletion test/permalinks/date.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ test.before(() => {
.toPromise();
});

test.serial('sets date permalinks', () => {
test('sets date permalinks', () => {
assert.fileContent('_config.yml', 'permalink: date');
});
2 changes: 1 addition & 1 deletion test/permalinks/none.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ test.before(() => {
.toPromise();
});

test.serial('sets none permalinks', () => {
test('sets none permalinks', () => {
assert.fileContent('_config.yml', 'permalink: none');
});
2 changes: 1 addition & 1 deletion test/permalinks/ordinal.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test.before(() => {
.toPromise();
});

test.serial('sets ordinal permalinks', () => {
test('sets ordinal permalinks', () => {
assert.fileContent('_config.yml', 'permalink: ordinal');
});

2 changes: 1 addition & 1 deletion test/permalinks/pretty.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ test.before(() => {
.toPromise();
});

test.serial('sets pretty permalinks', () => {
test('sets pretty permalinks', () => {
assert.fileContent('_config.yml', 'permalink: pretty');
});
14 changes: 7 additions & 7 deletions test/uploading/aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ test.before(() => {
.toPromise();
});

test.serial('creates gulpfile', () => {
test('creates gulpfile', () => {
assert.file('gulpfile.js');
});

test.serial('creates package.json file', () => {
test('creates package.json file', () => {
assert.file('package.json');
});

test.serial('contain correct uploading packages', () => {
test('contain correct uploading packages', () => {
[
'"gulp-awspublish": "^3.0.1"',
'"concurrent-transform": "^1.0.0"'
Expand All @@ -27,7 +27,7 @@ test.serial('contain correct uploading packages', () => {
});
});

test.serial('does not contain wrong uploading packages', () => {
test('does not contain wrong uploading packages', () => {
[
'"gulp-rsync"',
'"gulp-gh-pages"'
Expand All @@ -36,18 +36,18 @@ test.serial('does not contain wrong uploading packages', () => {
});
});

test.serial('contains deploy task', () => {
test('contains deploy task', () => {
assert.fileContent('gulpfile.js', '// \'gulp deploy\' -- reads from your AWS Credentials file, creates the correct');
assert.fileContent('gulpfile.js', '// headers for your files and uploads them to S3');
assert.fileContent('gulpfile.js', 'gulp.task(\'deploy\'');
});

test.serial('does not contain wrong uploading tasks', () => {
test('does not contain wrong uploading tasks', () => {
assert.noFileContent('gulpfile.js', '// \'gulp deploy\' -- reads from your Rsync credentials file and incrementally');
assert.noFileContent('gulpfile.js', '// uploads your site to your server');
assert.noFileContent('gulpfile.js', '// \'gulp deploy\' -- pushes your dist folder to Github');
});

test.serial('creates credentials file', () => {
test('creates credentials file', () => {
assert.file('aws-credentials.json');
});
12 changes: 6 additions & 6 deletions test/uploading/ghpages.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ test.before(() => {
.toPromise();
});

test.serial('creates gulpfile', () => {
test('creates gulpfile', () => {
assert.file('gulpfile.js');
});

test.serial('creates package.json file', () => {
test('creates package.json file', () => {
assert.file('package.json');
});

test.serial('contain correct uploading packages', () => {
test('contain correct uploading packages', () => {
assert.fileContent('package.json', '"gulp-gh-pages": "^0.5.2"');
});

test.serial('does not contain wrong uploading packages', () => {
test('does not contain wrong uploading packages', () => {
[
'"gulp-awspublish"',
'"concurrent-transform"',
Expand All @@ -32,12 +32,12 @@ test.serial('does not contain wrong uploading packages', () => {
});
});

test.serial('contains deploy function', () => {
test('contains deploy function', () => {
assert.fileContent('gulpfile.js', '// \'gulp deploy\' -- pushes your dist folder to Github');
assert.fileContent('gulpfile.js', 'gulp.task(\'deploy\'');
});

test.serial('does not contain the wrong uploading task', () => {
test('does not contain the wrong uploading task', () => {
assert.noFileContent('gulpfile.js', '// \'gulp deploy\' -- reads from your AWS Credentials file, creates the correct');
assert.noFileContent('gulpfile.js', '// headers for your files and uploads them to S3');
assert.noFileContent('gulpfile.js', '// \'gulp deploy\' -- reads from your Rsync credentials file and incrementally');
Expand Down
10 changes: 5 additions & 5 deletions test/uploading/no-uploading.js → test/uploading/none.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ test.before(() => {
.toPromise();
});

test.serial('creates gulpfile', () => {
test('creates gulpfile', () => {
assert.file('gulpfile.js');
});

test.serial('creates package.json file', () => {
test('creates package.json file', () => {
assert.file('package.json');
});

test.serial('does not create credentials files', () => {
test('does not create credentials files', () => {
assert.noFile([
'aws-credentials.json',
'rsync-credentials.json'
]);
});

test.serial('does not contain uploading packages', () => {
test('does not contain uploading packages', () => {
[
'"gulp-awspublish"',
'"concurrent-transform"',
Expand All @@ -36,6 +36,6 @@ test.serial('does not contain uploading packages', () => {
});
});

test.serial('does not contain deploy task', () => {
test('does not contain deploy task', () => {
assert.noFileContent('gulpfile.js', 'gulp.task(\'deploy\'');
});
14 changes: 7 additions & 7 deletions test/uploading/rsync.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ test.before(() => {
.toPromise();
});

test.serial('creates gulpfile', () => {
test('creates gulpfile', () => {
assert.file('gulpfile.js');
});

test.serial('creates package.json file', () => {
test('creates package.json file', () => {
assert.file('package.json');
});

test.serial('contain correct uploading packages', () => {
test('contain correct uploading packages', () => {
assert.fileContent('package.json', '"gulp-rsync": "^0.0.5"');
});

test.serial('does not contain wrong uploading packages', () => {
test('does not contain wrong uploading packages', () => {
[
'"gulp-awspublish"',
'"concurrent-transform"',
Expand All @@ -32,18 +32,18 @@ test.serial('does not contain wrong uploading packages', () => {
});
});

test.serial('contains deploy function', () => {
test('contains deploy function', () => {
assert.fileContent('gulpfile.js', '// \'gulp deploy\' -- reads from your Rsync credentials file and incrementally');
assert.fileContent('gulpfile.js', '// uploads your site to your server');
assert.fileContent('gulpfile.js', 'gulp.task(\'deploy\'');
});

test.serial('does not contain the wrong uploading task', () => {
test('does not contain the wrong uploading task', () => {
assert.noFileContent('gulpfile.js', '// \'gulp deploy\' -- reads from your AWS Credentials file, creates the correct');
assert.noFileContent('gulpfile.js', '// headers for your files and uploads them to S3');
assert.noFileContent('gulpfile.js', '// \'gulp deploy\' -- pushes your dist folder to Github');
});

test.serial('creates credentials file', () => {
test('creates credentials file', () => {
assert.file('rsync-credentials.json');
});

0 comments on commit 7e5b80a

Please sign in to comment.