Sha256: 52012f7993652fe7f80748485a806e829a4fcf83c252d508ff3c32dc69512f02

Contents?: true

Size: 344 Bytes

Versions: 11

Compression:

Stored size: 344 Bytes

Contents

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

class UglifyTest < UnitTest
  class App < Main
    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

11 entries across 11 versions & 1 rubygems

Version Path
sinatra-assetpack-0.3.5 test/uglifier_test.rb
sinatra-assetpack-0.3.3 test/uglifier_test.rb
sinatra-assetpack-0.3.2 test/uglifier_test.rb
sinatra-assetpack-0.3.1 test/uglifier_test.rb
sinatra-assetpack-0.3.0 test/uglifier_test.rb
sinatra-assetpack-0.2.8 test/uglifier_test.rb
sinatra-assetpack-0.2.7 test/uglifier_test.rb
sinatra-assetpack-0.2.6 test/uglifier_test.rb
sinatra-assetpack-0.2.5 test/uglifier_test.rb
sinatra-assetpack-0.2.4 test/uglifier_test.rb
sinatra-assetpack-0.2.3 test/uglifier_test.rb