spec/fixtures/fake_app.rb in rack-test-0.5.2 vs spec/fixtures/fake_app.rb in rack-test-0.5.3
- old
+ new
@@ -79,9 +79,17 @@
response.set_cookie("count", :value => new_value, :domain => "localhost.com")
new_value
end
+ get "/cookies/subdomain" do
+ old_value = request.cookies["count"].to_i || 0
+ new_value = (old_value + 1).to_s
+
+ response.set_cookie("count", :value => new_value, :domain => ".example.org")
+ new_value
+ end
+
get "/cookies/set-uppercase" do
raise if params["value"].nil?
response.set_cookie("VALUE", {
:value => params["value"],