Skip to content

Commit

Permalink
add bundle exec command test.
Browse files Browse the repository at this point in the history
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Feb 19, 2015
1 parent 858074e commit 9e944bf
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# A sample Gemfile
source "https://rubygems.org"

# gem "rails"

gem 'sass', ">= 3.4.11"
gem 'sass-globbing', ">= 1.1.0"
gem 'compass', ">= 1.0.3"
22 changes: 22 additions & 0 deletions test/compass_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,28 @@ describe('gulp-compass plugin', function() {
done();
});
});

it('test bundle exec command', function(done) {
compass(path.join(__dirname, 'sass/compile.scss'), {
project: __dirname,
style: 'compressed',
css: 'css',
sass: 'sass',
logging: false,
debug: true,
bundle_exec: true
}, function(code, stdout, stderr, new_path, options) {
code.should.be.equal(0);
options.debug.should.be.ok;
stderr.should.be.empty;
new_path.should.equal(__dirname + '/css/compile.css');
actual = read_file(path.join(__dirname, 'css/compile.css'));
expected = read_file(path.join(__dirname, 'expected/compile.css'));
actual.should.equal(expected);
done();
});
});

});

describe('compass helper', function() {
Expand Down

0 comments on commit 9e944bf

Please sign in to comment.