Sha256: dfe3a2cbdc410de83a4b7c8c5e754ca657ece7f324907a8d9b89945cc3591298

Contents?: true

Size: 522 Bytes

Versions: 3

Compression:

Stored size: 522 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.b1946ac92492d2347c6235b4d2611184.js'
    assert last_response.status == 200
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sinatra-assetpack-0.2.2 test/compressed_test.rb
sinatra-assetpack-0.2.1 test/compressed_test.rb
sinatra-assetpack-0.2.0 test/compressed_test.rb