Instiki 0.17.2: Security Release
This release upgrades Instiki to Rails 2.3.4, which patches two security holes in Rails. See http://weblog.rubyonrails.org/2009/9/4/ruby-on-rails-2-3-4 There are also some new features, and the usual boatload of bugfixes. See the CHANGELOG for details.
This commit is contained in:
parent
34c4306867
commit
4bdf703ab2
211 changed files with 3959 additions and 1325 deletions
|
@ -1,6 +1,6 @@
|
|||
require 'abstract_unit'
|
||||
|
||||
class BaseRackTest < Test::Unit::TestCase
|
||||
class BaseRackTest < ActiveSupport::TestCase
|
||||
def setup
|
||||
@env = {
|
||||
"HTTP_MAX_FORWARDS" => "10",
|
||||
|
@ -261,6 +261,23 @@ class RackResponseTest < BaseRackTest
|
|||
body.each { |part| parts << part }
|
||||
assert_equal ["0", "1", "2", "3", "4"], parts
|
||||
end
|
||||
|
||||
def test_streaming_block_with_flush_is_deprecated
|
||||
@response.body = Proc.new do |response, output|
|
||||
5.times do |n|
|
||||
output.write(n)
|
||||
output.flush
|
||||
end
|
||||
end
|
||||
|
||||
assert_deprecated(/output.flush is no longer needed/) do
|
||||
@response.prepare!
|
||||
status, headers, body = @response.to_a
|
||||
|
||||
parts = []
|
||||
body.each { |part| parts << part }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class RackResponseHeadersTest < BaseRackTest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue