Skip to content

Commit

Permalink
update rack tests for default response content_type and charset
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Aug 22, 2008
1 parent b994429 commit e6a66cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actionpack/test/controller/rack_test.rb
Expand Up @@ -241,7 +241,7 @@ def test_simple_output
status, headers, body = @response.out(@output)
assert_equal "200 OK", status
assert_equal({
"Content-Type" => "text/html",
"Content-Type" => "text/html; charset=utf-8",
"Cache-Control" => "private, max-age=0, must-revalidate",
"ETag" => '"65a8e27d8879283831b664bd8b7f0ad4"',
"Set-Cookie" => [],
Expand All @@ -261,7 +261,7 @@ def test_streaming_block

status, headers, body = @response.out(@output)
assert_equal "200 OK", status
assert_equal({"Content-Type" => "text/html", "Cache-Control" => "no-cache", "Set-Cookie" => []}, headers)
assert_equal({"Content-Type" => "text/html; charset=utf-8", "Cache-Control" => "no-cache", "Set-Cookie" => []}, headers)

parts = []
body.each { |part| parts << part }
Expand All @@ -278,7 +278,7 @@ def test_set_session_cookie
status, headers, body = @response.out(@output)
assert_equal "200 OK", status
assert_equal({
"Content-Type" => "text/html",
"Content-Type" => "text/html; charset=utf-8",
"Cache-Control" => "private, max-age=0, must-revalidate",
"ETag" => '"65a8e27d8879283831b664bd8b7f0ad4"',
"Set-Cookie" => ["name=Josh; path="],
Expand Down

0 comments on commit e6a66cb

Please sign in to comment.