Bugfixes and Rails Edge
Update to Rails 2.3.1. (Actually, not quite. Doesn't look like 2.3.1 will be released today, but I REALLY want to push these bugfixes out.) Removed bundled Rack (Rails 2.3.1 comes bundled with Rack 1.0). Add config.action_view.cache_template_loading = true to production environment. Fix FastCGI bug (http://rubyforge.org/tracker/index.php?func=detail&aid=24191&group_id=186&atid=783). Fix WikiWords bug (http://rubyforge.org/pipermail/instiki-users/2009-February/001181.html).
This commit is contained in:
parent
0ddef97328
commit
133c21b801
641 changed files with 20541 additions and 71675 deletions
|
@ -219,7 +219,7 @@ class RackResponseTest < BaseRackTest
|
|||
"Content-Type" => "text/html; charset=utf-8",
|
||||
"Cache-Control" => "private, max-age=0, must-revalidate",
|
||||
"ETag" => '"65a8e27d8879283831b664bd8b7f0ad4"',
|
||||
"Set-Cookie" => [],
|
||||
"Set-Cookie" => "",
|
||||
"Content-Length" => "13"
|
||||
}, headers)
|
||||
|
||||
|
@ -228,6 +228,21 @@ class RackResponseTest < BaseRackTest
|
|||
assert_equal ["Hello, World!"], parts
|
||||
end
|
||||
|
||||
def test_utf8_output
|
||||
@response.body = [1090, 1077, 1089, 1090].pack("U*")
|
||||
@response.prepare!
|
||||
|
||||
status, headers, body = @response.to_a
|
||||
assert_equal 200, status
|
||||
assert_equal({
|
||||
"Content-Type" => "text/html; charset=utf-8",
|
||||
"Cache-Control" => "private, max-age=0, must-revalidate",
|
||||
"ETag" => '"ebb5e89e8a94e9dd22abf5d915d112b2"',
|
||||
"Set-Cookie" => "",
|
||||
"Content-Length" => "8"
|
||||
}, headers)
|
||||
end
|
||||
|
||||
def test_streaming_block
|
||||
@response.body = Proc.new do |response, output|
|
||||
5.times { |n| output.write(n) }
|
||||
|
@ -238,9 +253,8 @@ class RackResponseTest < BaseRackTest
|
|||
assert_equal 200, status
|
||||
assert_equal({
|
||||
"Content-Type" => "text/html; charset=utf-8",
|
||||
"Content-Length" => "",
|
||||
"Cache-Control" => "no-cache",
|
||||
"Set-Cookie" => []
|
||||
"Set-Cookie" => ""
|
||||
}, headers)
|
||||
|
||||
parts = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue