spec/fixtures/fake_app.rb in rack-test-0.6.1 vs spec/fixtures/fake_app.rb in rack-test-0.6.2

- old
+ new

@@ -53,10 +53,21 @@ response.set_cookie "simple", params["value"] "Set" end + post "/cookies/default-path" do + raise if params["value"].nil? + + response.set_cookie "simple", params["value"] + "Set" + end + + get "/cookies/default-path" do + response.cookies.inspect + end + get "/cookies/delete" do response.delete_cookie "value" end get "/cookies/count" do @@ -114,9 +125,13 @@ post "/" do "Hello, POST: #{params.inspect}" end put "/" do + "Hello, PUT: #{params.inspect}" + end + + patch "/" do "Hello, PUT: #{params.inspect}" end delete "/" do "Hello, DELETE: #{params.inspect}"