Skip to content
This repository
Browse code

Bump Rack version to 0.9

  • Loading branch information...
commit b7ea4add86231ef628d479516c8a09ca55e610bc 1 parent ce706b4
Joshua Peek authored January 06, 2009
2  actionpack/Rakefile
@@ -81,7 +81,7 @@ spec = Gem::Specification.new do |s|
81 81
   s.requirements << 'none'
82 82
 
83 83
   s.add_dependency('activesupport', '= 2.3.0' + PKG_BUILD)
84  
-  s.add_dependency('rack', '= 0.4.0')
  84
+  s.add_dependency('rack', '>= 0.9.0')
85 85
 
86 86
   s.require_path = 'lib'
87 87
   s.autorequire = 'action_controller'
2  actionpack/lib/action_controller.rb
@@ -31,7 +31,7 @@
31 31
   end
32 32
 end
33 33
 
34  
-gem 'rack', '~> 0.4.0'
  34
+gem 'rack', '>= 0.9.0'
35 35
 require 'rack'
36 36
 
37 37
 module ActionController
6  actionpack/test/controller/integration_test.rb
@@ -4,7 +4,7 @@
4 4
 
5 5
 class SessionTest < Test::Unit::TestCase
6 6
   StubApp = lambda { |env|
7  
-    [200, {"Content-Type" => "text/html"}, "Hello, World!"]
  7
+    [200, {"Content-Type" => "text/html", "Content-Length" => "13"}, "Hello, World!"]
8 8
   }
9 9
 
10 10
   def setup
@@ -465,9 +465,9 @@ class MetalTest < ActionController::IntegrationTest
465 465
   class Poller
466 466
     def self.call(env)
467 467
       if env["PATH_INFO"] =~ /^\/success/
468  
-        [200, {"Content-Type" => "text/plain"}, "Hello World!"]
  468
+        [200, {"Content-Type" => "text/plain", "Content-Length" => "12"}, "Hello World!"]
469 469
       else
470  
-        [404, {"Content-Type" => "text/plain"}, '']
  470
+        [404, {"Content-Type" => "text/plain", "Content-Length" => "0"}, '']
471 471
       end
472 472
     end
473 473
   end
7  actionpack/test/controller/rack_test.rb
@@ -236,7 +236,12 @@ def test_streaming_block
236 236
 
237 237
     status, headers, body = @response.to_a
238 238
     assert_equal 200, status
239  
-    assert_equal({"Content-Type" => "text/html; charset=utf-8", "Cache-Control" => "no-cache", "Set-Cookie" => []}, headers)
  239
+    assert_equal({
  240
+      "Content-Type" => "text/html; charset=utf-8",
  241
+      "Content-Length" => "",
  242
+      "Cache-Control" => "no-cache",
  243
+      "Set-Cookie" => []
  244
+    }, headers)
240 245
 
241 246
     parts = []
242 247
     body.each { |part| parts << part }

0 notes on commit b7ea4ad

Please sign in to comment.
Something went wrong with that request. Please try again.