Sha256: be4ff59543e0db0fd3eb79294aedb4af0b5d6c821665522095b6639f5002a488
Contents?: true
Size: 518 Bytes
Versions: 6
Compression:
Stored size: 518 Bytes
Contents
require File.expand_path('../test_helper', __FILE__) class CacheTest < UnitTest class App < UnitTest::App register Sinatra::AssetPack set :reload_templates, false assets { js :app, '/js/app.js', [ '/js/vendor/**/*.js', '/js/assets/**/*.js', '/js/hi.js', '/js/hell*.js' ] js_compression :jsmin } end def app() App; end test "Compressed js caching" do JSMin.expects(:minify).times(1).returns "" 3.times { get '/js/app.js' } end end
Version data entries
6 entries across 6 versions & 2 rubygems