Permalink
Browse files

Add test for multiline headers issue

  • Loading branch information...
1 parent daab1d0 commit a6218f8c8e96d192c19910f422343663209e8d70 @drogus drogus committed Mar 4, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 spec/server/server_spec.rb
@@ -9,6 +9,13 @@
last_response.should have_body("Hello Rack")
end
+ it "handles cookie headers properly" do
+ start lambda { |env| [ 200, { 'Cookie' => "a=b\nc=d" }, [ "Hello Cookie" ] ] }
+
+ get '/'
+ last_response.headers["Cookie"].should == "a=b, c=d"
+ end
+
it "runs the server" do
start hello_world_path('config.ru')

0 comments on commit a6218f8

Please sign in to comment.