1
0
Fork 0
mirror of https://github.com/twbs/bootstrap-sass.git synced 2022-11-09 12:27:02 -05:00
twbs--bootstrap-sass/test/node_sass_test.rb
Gleb Mazovetskiy 1f6ab21fa9 node-sass test
2014-03-12 20:22:53 +01:00

15 lines
454 B
Ruby

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