diff options
author | Gleb Mazovetskiy <glex.spb@gmail.com> | 2015-07-01 22:45:14 +0300 |
---|---|---|
committer | Gleb Mazovetskiy <glex.spb@gmail.com> | 2015-07-01 22:45:14 +0300 |
commit | 7097cf5572e8f61b634c34e0dad86961b111b3b6 (patch) | |
tree | 6981ee633f78c9d4ee3660563a07e64a758dbe82 /test | |
parent | 47819e892fc0f2fa9c7269fdf297aa5e81a361c6 (diff) |
Update node.js devDeps, tests, new mincer compat
Diffstat (limited to 'test')
-rw-r--r-- | test/node_mincer_test.rb | 5 | ||||
-rwxr-xr-x | test/node_sass_compile_test.sh | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/test/node_mincer_test.rb b/test/node_mincer_test.rb index c18a086..28aacab 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 df6314a..6c8a369 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) |