Sha256: b1f9d5158306046e0050506a9fca5f855fc13c050075c15834d91453857548c2
Contents?: true
Size: 491 Bytes
Versions: 29
Compression:
Stored size: 491 Bytes
Contents
require File.expand_path('../test_helper', __FILE__) class YuiTest < UnitTest setup do app.set :reload_templates, true 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
29 entries across 29 versions & 3 rubygems