spec/packager_spec.rb in assets_booster-0.0.4 vs spec/packager_spec.rb in assets_booster-0.0.5

- old
+ new

@@ -43,11 +43,11 @@ 'options' => { 'javascript' => { 'compiler' => "uglify", }, 'stylesheet' => { - 'compiler' => "rainpress", + 'compiler' => "yui_css", }, 'environments' => %w(test), } ) @@ -58,11 +58,11 @@ File.should_receive(:open).with("/rails/public/stylesheets/base_packaged.css", "w").twice.and_yield(file) File.should_receive(:mtime).with("/rails/public/stylesheets/screen.css").once.and_return(13) File.should_receive(:utime).with(13, 13, "/rails/public/stylesheets/base_packaged.css").twice # compiling css - file.should_receive(:write).with("html{color:red}").once + file.should_receive(:write).with("html{color:#f00}").once # merging js File.should_receive(:read).with("/rails/public/javascripts/jquery.js").once.and_return("var action = 'jquery'; alert('jquery')") File.should_receive(:read).with("/rails/public/javascripts/rails.js").once.and_return("action = 4*3; alert('rails')") file = double("File") @@ -75,10 +75,10 @@ # compiling js 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.*Rainpress/) + @messages[1].should match(/Compiling.*YUI Compressor/) @messages[3].should match(/Merging assets.*Simple Merger/) @messages[4].should match(/Compiling.*UglifyJS/) end end end