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
vanity-1.7.1 vendor/ruby/1.9.1/gems/actionpack-2.3.12/test/controller/header_test.rb
mitio-erubis_rails_helper-1.0.1 test/controller/header_test.rb
actionpack-2.3.14 test/controller/header_test.rb
kajam-1.0.3.rc2 vendor/rails/actionpack/test/controller/header_test.rb
actionpack-2.3.12 test/controller/header_test.rb
radiant-1.0.0.rc2 vendor/rails/actionpack/test/controller/header_test.rb
radiant-1.0.0.rc1 vendor/rails/actionpack/test/controller/header_test.rb
webroar-0.5.0 src/admin_panel/vendor/rails/actionpack/test/controller/header_test.rb
actionpack-2.3.11 test/controller/header_test.rb
radiantcms-couchrest_model-0.2.4 vendor/rails/actionpack/test/controller/header_test.rb
radiantcms-couchrest_model-0.2.2 vendor/rails/actionpack/test/controller/header_test.rb
radiantcms-couchrest_model-0.2.1 vendor/rails/actionpack/test/controller/header_test.rb
radiantcms-couchrest_model-0.2 vendor/rails/actionpack/test/controller/header_test.rb
radiantcms-couchrest_model-0.1.9 vendor/rails/actionpack/test/controller/header_test.rb
radiantcms-couchrest_model-0.1.8 vendor/rails/actionpack/test/controller/header_test.rb
radiantcms-couchrest_model-0.1.7 vendor/rails/actionpack/test/controller/header_test.rb
radiantcms-couchrest_model-0.1.6 vendor/rails/actionpack/test/controller/header_test.rb
radiantcms-couchrest_model-0.1.5 vendor/rails/actionpack/test/controller/header_test.rb
radiantcms-couchrest_model-0.1.4 vendor/rails/actionpack/test/controller/header_test.rb
radiantcms-couchrest_model-0.1.3 vendor/rails/actionpack/test/controller/header_test.rb