Sha256: d5650bc9d5faf6974931f5f67b0d238519804ff2b8f33227cfce94d1c97d6bcb

Contents?: true

Size: 445 Bytes

Versions: 93

Compression:

Stored size: 445 Bytes

Contents

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

Version data entries

93 entries across 90 versions & 21 rubygems

Version Path
actionpack-2.3.4 test/controller/header_test.rb
actionpack-2.3.3 test/controller/header_test.rb
actionpack-2.2.2 test/controller/header_test.rb
actionpack-2.3.2 test/controller/header_test.rb
actionpack-2.1.0 test/controller/header_test.rb
actionpack-2.1.1 test/controller/header_test.rb
actionpack-2.1.2 test/controller/header_test.rb
antfarm-0.3.0 rails/vendor/rails/actionpack/test/controller/header_test.rb
antfarm-0.4.0 rails/vendor/rails/actionpack/test/controller/header_test.rb
eactionpack-2.1.2 test/controller/header_test.rb
radiant-0.7.0 vendor/rails/actionpack/test/controller/header_test.rb
radiant-0.7.1 vendor/rails/actionpack/test/controller/header_test.rb
radiant-0.8.0 vendor/rails/actionpack/test/controller/header_test.rb