aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/header_test.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-01-28 22:50:46 -0600
committerJoshua Peek <josh@joshpeek.com>2009-01-28 22:50:46 -0600
commit85750f22c90c914a429116fb908990c5a2c68379 (patch)
tree4a7653cd1463d1bcc053dca17c98096d4718b653 /actionpack/test/dispatch/header_test.rb
parent319ae4628f4e0058de3e40e4ca7791b17e45e70c (diff)
downloadrails-85750f22c90c914a429116fb908990c5a2c68379.tar.gz
rails-85750f22c90c914a429116fb908990c5a2c68379.tar.bz2
rails-85750f22c90c914a429116fb908990c5a2c68379.zip
Move dispatch related tests into test/dispatch
Diffstat (limited to 'actionpack/test/dispatch/header_test.rb')
-rw-r--r--actionpack/test/dispatch/header_test.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/header_test.rb b/actionpack/test/dispatch/header_test.rb
new file mode 100644
index 0000000000..ec6ba494dc
--- /dev/null
+++ b/actionpack/test/dispatch/header_test.rb
@@ -0,0 +1,16 @@
+require 'abstract_unit'
+
+class HeaderTest < ActiveSupport::TestCase
+ def setup
+ @headers = ActionDispatch::Http::Headers.new(
+ "HTTP_CONTENT_TYPE" => "text/plain"
+ )
+ end
+
+ test "content type" do
+ 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