mirror of
https://github.com/twbs/bootstrap-sass.git
synced 2022-11-09 12:27:02 -05:00
15 lines
454 B
Ruby
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
|