Sha256: abf43f44dab64b5ce96fa197b403b29fc888096292370cff9e7a35590a17c2d3

Contents?: true

Size: 497 Bytes

Versions: 15

Compression:

Stored size: 497 Bytes

Contents

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

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

    assets {
      js :app, '/app.js', [ '/js/*.js' ]
    }
  end

  def app
    App
  end

  test "ha" do
    get '/x/y/z/app.js'
    assert last_response.status == 404
  end

  test "right" do
    get '/app.js'
    assert last_response.status == 200
  end

  test "lol" do
    get '/app.4872837.js'
    assert last_response.status == 200
  end
end

Version data entries

15 entries across 15 versions & 3 rubygems

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