mirror of
https://github.com/twbs/bootstrap-sass.git
synced 2022-11-09 12:27:02 -05:00
node-sass test
This commit is contained in:
parent
eec14dac76
commit
1f6ab21fa9
2 changed files with 17 additions and 0 deletions
|
@ -7,6 +7,8 @@ rvm:
|
|||
gemfile:
|
||||
- test/gemfiles/sass_3_2.gemfile
|
||||
- test/gemfiles/sass_head.gemfile
|
||||
before_install:
|
||||
- "npm install node-sass"
|
||||
matrix:
|
||||
allow_failures:
|
||||
- gemfile: test/gemfiles/sass_head.gemfile
|
||||
|
|
15
test/node_sass_test.rb
Normal file
15
test/node_sass_test.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
require 'test_helper'
|
||||
require 'fileutils'
|
||||
|
||||
class NodeSassTest < Test::Unit::TestCase
|
||||
def test_node_sass_compilation
|
||||
path = 'vendor/assets/stylesheets'
|
||||
%w(bootstrap bootstrap/_theme).each do |file|
|
||||
FileUtils.mkdir_p "tmp/node-sass"
|
||||
command = "node-sass #{path}/#{file} -o tmp/node-sass/#{File.basename file}.css"
|
||||
assert silence_stream(STDOUT) {
|
||||
system(command)
|
||||
}, 'node-sass compilation failed'
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Reference in a new issue