freeze rails 2.3.10

This commit is contained in:
Reinier Balt 2011-02-04 17:11:33 +01:00
parent c94cf5f7ff
commit 25b522c6d4
1560 changed files with 212255 additions and 0 deletions

View file

@ -0,0 +1,14 @@
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