1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test/dispatch/header_test.rb
2009-01-28 22:50:46 -06:00

16 lines
449 B
Ruby

require 'abstract_unit'
class HeaderTest < ActiveSupport::TestCase
def setup
@headers = ActionDispatch::Http::Headers.new(
"HTTP_CONTENT_TYPE" => "text/plain"
)
end
test "content type" do
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