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

Version Path
sinatra-assetpack-0.3.5 test/yui_test.rb
sinatra-assetpack-0.3.3 test/yui_test.rb
sinatra-assetpack-0.3.2 test/yui_test.rb
sinatra-assetpack-0.3.1 test/yui_test.rb
sinatra-assetpack-0.3.0 test/yui_test.rb
sinatra-assetpack-0.2.8 test/yui_test.rb
sinatra-assetpack-0.2.7 test/yui_test.rb
sinatra-assetpack-0.2.6 test/yui_test.rb
sinatra-assetpack-0.2.5 test/yui_test.rb
sinatra-assetpack-0.2.4 test/yui_test.rb
sinatra-assetpack-0.2.3 test/yui_test.rb
sinatra-assetpack-0.2.2 test/yui_test.rb
sinatra-assetpack-0.2.1 test/yui_test.rb
sinatra-assetpack-0.2.0 test/yui_test.rb
sinatra-assetpack-0.1.7 test/yui_test.rb
sundawg-sinatra-assetpack-fork-0.1.6 test/yui_test.rb
sinatra-assetpack-0.1.6 test/yui_test.rb
sinatra-assetpack-0.1.5 test/yui_test.rb
sinatra-assetpack-0.1.4 test/yui_test.rb
sinatra-assetpack-0.1.3 test/yui_test.rb