Permalink
Browse files

test - fix the list of expected tasks output, in case of missing comp…

…ass / phantomjs
  • Loading branch information...
1 parent de1c0d0 commit d27105f2ede47c9324a4e39510e8c9a2e224087f @mklabs mklabs committed Sep 14, 2012
Showing with 10 additions and 2 deletions.
  1. +10 −2 cli/test/test-build.js
@@ -151,8 +151,16 @@ describe('yeoman init && yeoman build', function() {
describe('build', function() {
it('should output the list of task at the beginning of the build', function() {
- this.yeoman
- .expect(/intro clean coffee compass mkdirs usemin-handler rjs concat css img rev usemin manifest copy time/);
+ this.yeoman.expect(/intro clean/);
+ this.yeoman.expect(/mkdirs usemin-handler rjs concat css img rev usemin/);
+
+ if( this.compass ) {
+ this.yeoman.expect(/compass mkdirs/);
+ }
+
+ if( this.phantomjs) {
+ this.yeoman.expect(/usemin manifest copy/);
+ }
});
});

0 comments on commit d27105f

Please sign in to comment.