mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
104f31af1d
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8625 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
14 lines
445 B
Ruby
14 lines
445 B
Ruby
require 'abstract_unit'
|
|
|
|
class HeaderTest < Test::Unit::TestCase
|
|
def setup
|
|
@headers = ActionController::Http::Headers.new("HTTP_CONTENT_TYPE"=>"text/plain")
|
|
end
|
|
|
|
def test_content_type_works
|
|
assert_equal "text/plain", @headers["Content-Type"]
|
|
assert_equal "text/plain", @headers["content-type"]
|
|
assert_equal "text/plain", @headers["CONTENT_TYPE"]
|
|
assert_equal "text/plain", @headers["HTTP_CONTENT_TYPE"]
|
|
end
|
|
end
|