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.1.2 test/yui_test.rb
sinatra-assetpack-0.1.1 test/yui_test.rb
sinatra-assetpack-0.1.0 test/yui_test.rb
sinatra-assetpack-flexible-compression-0.0.1 test/yui_test.rb
sundawg-sinatra-assetpack-fork-0.0.12.pre1 test/yui_test.rb
sinatra-assetpack-0.0.12.pre1 test/yui_test.rb
sinatra-assetpack-0.0.11 test/yui_test.rb
sinatra-assetpack-0.0.10 test/yui_test.rb
sinatra-assetpack-0.0.9 test/yui_test.rb