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