Sha256: 3d331fd484507735e9d9068b9c15b2c22eacc9a4c8dfd11f59e144387a29fff3

Contents?: true

Size: 386 Bytes

Versions: 17

Compression:

Stored size: 386 Bytes

Contents

require File.expand_path('../test_helper', __FILE__)

class UglifyTest < UnitTest
  class App < UnitTest::App
    register Sinatra::AssetPack

    assets do
      js_compression :uglify, :mangle => true
      js :main, '/main.js', [
        '/js/ugly.js'
      ]
    end
  end

  def app
    App
  end

  test "build" do
    get '/main.js'
    assert !body.include?("noodle")
  end
end

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
sinatra-assetpack-0.2.2 test/uglifier_test.rb
sinatra-assetpack-0.2.1 test/uglifier_test.rb
sinatra-assetpack-0.2.0 test/uglifier_test.rb
sinatra-assetpack-0.1.7 test/uglifier_test.rb
sundawg-sinatra-assetpack-fork-0.1.6 test/uglifier_test.rb
sinatra-assetpack-0.1.6 test/uglifier_test.rb
sinatra-assetpack-0.1.5 test/uglifier_test.rb
sinatra-assetpack-0.1.4 test/uglifier_test.rb
sinatra-assetpack-0.1.3 test/uglifier_test.rb
sinatra-assetpack-0.1.2 test/uglifier_test.rb
sinatra-assetpack-0.1.1 test/uglifier_test.rb
sinatra-assetpack-0.1.0 test/uglifier_test.rb
sinatra-assetpack-flexible-compression-0.0.1 test/uglifier_test.rb
sundawg-sinatra-assetpack-fork-0.0.12.pre1 test/uglifier_test.rb
sinatra-assetpack-0.0.12.pre1 test/uglifier_test.rb
sinatra-assetpack-0.0.11 test/uglifier_test.rb
sinatra-assetpack-0.0.10 test/uglifier_test.rb