Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

the set cookie method is defined for the response #52

Merged
merged 1 commit into from

2 participants

@deepak

This fails

get '/' do
set_cookie "foo", "hello world"
end

This works

get '/' do
response.set_cookie "foo", "hello world"
end

@cypher cypher merged commit 6b0833e into sinatra:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 10, 2011
  1. @deepak
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  book/Testing.markdown
View
2  book/Testing.markdown
@@ -88,7 +88,7 @@ For example, add the following to your app to test against:
Use `set_cookie` for setting and removing cookies, and the access them in your response:
- set_cookie 'foo=bar'
+ response.set_cookie 'foo=bar'
get '/'
assert_equal 'Hello bar!', last_response.body
Something went wrong with that request. Please try again.