spec/packager_spec.rb in assets_booster-0.0.12 vs spec/packager_spec.rb in assets_booster-0.0.13
- old
+ new
@@ -40,11 +40,11 @@
'base' => %w(jquery rails),
},
},
'options' => {
'javascript' => {
- 'compiler' => "uglify",
+ 'compiler' => "closure",
},
'stylesheet' => {
'compiler' => "yui_css",
},
'environments' => %w(test),
@@ -71,16 +71,16 @@
File.should_receive(:mtime).with("/rails/public/javascripts/jquery.js").once.and_return(13)
File.should_receive(:mtime).with("/rails/public/javascripts/rails.js").once.and_return(14)
File.should_receive(:utime).with(14, 14, "/rails/public/javascripts/base_packaged.js").twice
# compiling js
- file.should_receive(:write).with("var action=\"jquery\";alert(\"jquery\"),action=12,alert(\"rails\")").once
+ file.should_receive(:write).with("var action=\"jquery\";alert(\"jquery\");action=12;alert(\"rails\");").once
subject.compile_all
@messages[0].should match(/Merging assets.*CSS Merger/)
@messages[1].should match(/Compiling.*YUI Compressor/)
@messages[3].should match(/Merging assets.*Simple Merger/)
- @messages[4].should match(/Compiling.*UglifyJS/)
+ @messages[4].should match(/Compiling.*Closure/)
end
end
end
end