Permalink
Browse files

Misc Rack 1.0 compatibility fixes

  • Loading branch information...
rtomayko committed Apr 25, 2009
1 parent eb18c9b commit 310fb9bbb7e9bc4235350a8589ae5eca63fcd17d
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/test_test.rb
View
@@ -45,8 +45,8 @@ def request_params
assert_equal('DELETE', request['REQUEST_METHOD'])
head '/'
- assert_equal('596', response.headers['Content-Length'])
assert_equal('', response.body)
+ assert response.headers['Content-Length'].to_i > 0
end
it 'allows to specify a body' do
@@ -92,8 +92,8 @@ def request_params
get '/', :env => { :host => '1.2.3.4' }
assert_equal '1.2.3.4', request['HTTP_HOST']
- get '/', :env => { :session => 'foo' }
- assert_equal 'foo', request['rack.session']
+ get '/', :env => { :session => {'foo' => 'bar'} }
+ assert_equal({'foo' => 'bar'}, request['rack.session'])
get '/', :env => { :cookies => 'foo' }
assert_equal 'foo', request['HTTP_COOKIE']

0 comments on commit 310fb9b

Please sign in to comment.