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
elkinsware-erubis_rails_helper-0.6.0 test/controller/header_test.rb
elkinsware-erubis_rails_helper-0.6.1 test/controller/header_test.rb
elkinsware-erubis_rails_helper-0.9.0 test/controller/header_test.rb
elkinsware-erubis_rails_helper-0.9.1 test/controller/header_test.rb
elkinsware-erubis_rails_helper-0.9.5 test/controller/header_test.rb
ghazel-erubis_rails_helper-0.9.5 test/controller/header_test.rb
actionpack-2.3.18 test/controller/header_test.rb
actionpack_csi-2.3.5.p8 test/controller/header_test.rb
actionpack-2.3.17-rack-upgrade-2.3.17 test/controller/header_test.rb
actionpack-2.3.17 test/controller/header_test.rb
actionpack_csi-2.3.5.p7 test/controller/header_test.rb
actionpack_csi-2.3.5.p6 test/controller/header_test.rb
actionpack-2.3.16 test/controller/header_test.rb
actionpack-rack-upgrade-2-2.3.16 test/controller/header_test.rb
actionpack-rack-upgrade-2-2.3.15 test/controller/header_test.rb
actionpack-2.3.15 test/controller/header_test.rb
actionpack-rack-upgrade-2.3.16 test/controller/header_test.rb
actionpack-rack-upgrade-2.3.15 test/controller/header_test.rb
actionpack-rack-upgrade-2.3.14 test/controller/header_test.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/actionpack-2.3.14/test/controller/header_test.rb