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

github.com/twbs/bootstrap-sass.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>2015-07-01 22:45:14 +0300
committerGleb Mazovetskiy <glex.spb@gmail.com>2015-07-01 22:45:14 +0300
commit7097cf5572e8f61b634c34e0dad86961b111b3b6 (patch)
tree6981ee633f78c9d4ee3660563a07e64a758dbe82 /test
parent47819e892fc0f2fa9c7269fdf297aa5e81a361c6 (diff)
Update node.js devDeps, tests, new mincer compat
Diffstat (limited to 'test')
-rw-r--r--test/node_mincer_test.rb5
-rwxr-xr-xtest/node_sass_compile_test.sh4
2 files changed, 4 insertions, 5 deletions
diff --git a/test/node_mincer_test.rb b/test/node_mincer_test.rb
index c18a0860..28aacab2 100644
--- a/test/node_mincer_test.rb
+++ b/test/node_mincer_test.rb
@@ -22,15 +22,14 @@ class NodeMincerTest < Minitest::Test
def setup
tmp_dir = File.join GEM_PATH, 'tmp/node-mincer'
- command = "node manifest.js #{tmp_dir}"
success = Dir.chdir DUMMY_PATH do
silence_stdout_if !ENV['VERBOSE'] do
- system(command)
+ system 'node', 'manifest.js', tmp_dir
end
end
assert success, 'Node.js Mincer compilation failed'
manifest = JSON.parse(File.read("#{tmp_dir}/manifest.json"))
- css_name = manifest["assets"]["application.css"]
+ css_name = manifest['assets']['application.css']
@css = File.read("#{tmp_dir}/#{css_name}")
end
end
diff --git a/test/node_sass_compile_test.sh b/test/node_sass_compile_test.sh
index df6314a7..6c8a3696 100755
--- a/test/node_sass_compile_test.sh
+++ b/test/node_sass_compile_test.sh
@@ -3,6 +3,6 @@
# Test compilation with node-sass binary
mkdir -p tmp/node-sass
-node-sass assets/stylesheets/bootstrap -o tmp/node-sass/bootstrap.css && \
-node-sass assets/stylesheets/bootstrap/theme -o tmp/node-sass/bootstrap-theme.css || \
+node-sass assets/stylesheets/_bootstrap.scss -o tmp/node-sass/bootstrap.css && \
+node-sass assets/stylesheets/bootstrap/_theme.scss -o tmp/node-sass/bootstrap-theme.css || \
(echo "node-sass compilation failed" && exit 1)