Sha256: b978e1dd62eb67327074e1f33bb4a797b51621814f690beddd4a5053858a5c71
Contents?: true
Size: 676 Bytes
Versions: 3
Compression:
Stored size: 676 Bytes
Contents
require 'test_helper' class TestContentType < Test::Unit::TestCase def setup @client = MockMogileFsClient.new end def test_content_type_lookup app_with :path => %r{^/assets/*}, :client => @client get '/assets/asset.txt' assert_status 200 assert_content_type "text/plain" get '/assets/asset.png' assert_status 200 assert_content_type "image/png" get '/assets/asset.xml' assert_status 200 assert_content_type "application/xml" end def test_default_content_type app_with :path => %r{^/assets/*}, :client => @client get '/assets/asset.xxx' assert_status 200 assert_content_type "image/png" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rack-mogilefs-0.3.2 | test/content_type_test.rb |
rack-mogilefs-0.3.1 | test/content_type_test.rb |
rack-mogilefs-0.3.0 | test/content_type_test.rb |