Sha256: 79431e202a359269fd5499cb373cca35b958c053e27c61f3b9bbfbcab0f4a164

Contents?: true

Size: 1.29 KB

Versions: 16

Compression:

Stored size: 1.29 KB

Contents

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

class AppTest < UnitTest
  test 'htc' do
    get '/css/behavior.htc'
    assert last_response.content_type =~ %r[^text/x-component]
  end

  test 'css - sass' do
    get '/css/screen.css'
    assert last_response.content_type =~ %r[^text/css]
  end

  test 'js' do
    get '/js/hello.js'
    assert last_response.content_type =~ %r[^.*?/javascript]
  end

  test 'js - coffee' do
    get '/js/hi.js'
    assert last_response.content_type =~ %r[^.*?/javascript]
  end

  test 'css - compressed' do
    get '/css/application.css'
    assert last_response.content_type =~ %r[^text/css]
  end

  test 'js - compressed' do
    get '/skitch.js'
    assert last_response.content_type =~ %r[^.*?/javascript]
  end

  test 'eot' do
    get '/fonts/cantarell-regular-webfont.eot'
    assert last_response.content_type =~ %r[^application/vnd.ms-fontobject]
  end

  test 'svg' do
    get '/fonts/cantarell-regular-webfont.svg'
    assert last_response.content_type =~ %r[^image/svg\+xml]
  end

  test 'ttf' do
    get '/fonts/cantarell-regular-webfont.ttf'
    assert last_response.content_type =~ %r[^application/octet-stream]
  end

  test 'woff' do
    get '/fonts/cantarell-regular-webfont.woff'
    assert last_response.content_type =~ %r[^application/font-woff]
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
sinatra-assetpack-0.3.3 test/mime_type_test.rb
sinatra-assetpack-0.3.2 test/mime_type_test.rb
sinatra-assetpack-0.3.1 test/mime_type_test.rb
sinatra-assetpack-0.3.0 test/mime_type_test.rb
sinatra-assetpack-0.2.8 test/mime_type_test.rb
sinatra-assetpack-0.2.7 test/mime_type_test.rb
sinatra-assetpack-0.2.6 test/mime_type_test.rb
sinatra-assetpack-0.2.5 test/mime_type_test.rb
sinatra-assetpack-0.2.4 test/mime_type_test.rb
sinatra-assetpack-0.2.3 test/mime_type_test.rb
sinatra-assetpack-0.2.2 test/mime_type_test.rb
sinatra-assetpack-0.2.1 test/mime_type_test.rb
sinatra-assetpack-0.2.0 test/mime_type_test.rb
sinatra-assetpack-0.1.7 test/mime_type_test.rb
sundawg-sinatra-assetpack-fork-0.1.6 test/mime_type_test.rb
sinatra-assetpack-0.1.6 test/mime_type_test.rb