Sha256: f8faeba56aef8fd404f931f331dcdd53d93e2a8996186f4c9a6a1a203b2f7184
Contents?: true
Size: 482 Bytes
Versions: 3
Compression:
Stored size: 482 Bytes
Contents
require File.expand_path('../test_helper', __FILE__) class YuiTest < UnitTest setup do app.assets.reset_cache app.assets.js_compression = :yui app.assets.css_compression = :yui end teardown do app.assets.js_compression = :jsmin app.assets.css_compression = :simple end test "build" do require 'yui/compressor' YUI::JavaScriptCompressor.any_instance.expects(:compress).returns "LOL" get '/js/app.js' assert body == "LOL" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sinatra-assetpack-0.0.8 | test/yui_test.rb |
sinatra-assetpack-0.0.6 | test/yui_test.rb |
sinatra-assetpack-0.0.5 | test/yui_test.rb |