aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/header_test.rb
blob: 33c14a187c61ef4df5f42eb816e5fd96ddf0ed4e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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