Sha256: 5ae7055fa6fcd72691560cbea43e9e5be2337d8b080599380adf4453335f1856

Contents?: true

Size: 480 Bytes

Versions: 11

Compression:

Stored size: 480 Bytes

Contents

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

class CompressedTest < UnitTest
  class App < Main
    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.b1946ac92492d2347c6235b4d2611184.js'
    assert last_response.status == 200
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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