Sha256: 9001379a186ac653c566ad118492d1c7d9894be124c64d9224fd94c918bc8370

Contents?: true

Size: 764 Bytes

Versions: 7

Compression:

Stored size: 764 Bytes

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
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
sinatra-assetpack-0.1.0 test/mime_type_test.rb
sinatra-assetpack-flexible-compression-0.0.1 test/mime_type_test.rb
sundawg-sinatra-assetpack-fork-0.0.12.pre1 test/mime_type_test.rb
sinatra-assetpack-0.0.12.pre1 test/mime_type_test.rb
sinatra-assetpack-0.0.11 test/mime_type_test.rb
sinatra-assetpack-0.0.10 test/mime_type_test.rb
sinatra-assetpack-0.0.9 test/mime_type_test.rb