Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGleb Mazovetskiy <glex.spb@gmail.com>2014-01-07 16:18:16 +0400
committerGleb Mazovetskiy <glex.spb@gmail.com>2014-03-12 23:22:53 +0400
commit1f6ab21fa9719dc20e8eeac602ad8168cfb8d8aa (patch)
treee123ad0998198159b1b565528f8e063e2e1f063c /test
parenteec14dac762d0bcf83f9c767fb23927ba37c9a12 (diff)
node-sass test
Diffstat (limited to 'test')
-rw-r--r--test/node_sass_test.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/node_sass_test.rb b/test/node_sass_test.rb
new file mode 100644
index 0000000..45f75df
--- /dev/null
+++ b/test/node_sass_test.rb
@@ -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