add failing test for attachment

This commit is contained in:
nashby 2011-06-17 22:57:20 +03:00
parent ec1b83d566
commit e9de3248fb
1 changed files with 6 additions and 0 deletions

View File

@ -593,6 +593,12 @@ class HelpersTest < Test::Unit::TestCase
assert_equal '<sinatra></sinatra>', body
end
it 'sets the Content-Type response header without extname' do
attachment_app('test')
get '/attachment'
assert_equal '<sinatra></sinatra>', body
end
end
describe 'send_file' do