Browse files

the set cookie method is defined for the response

  • Loading branch information...
1 parent 958abf2 commit a523c8731151be9edff8f355af45f7c3a95cfdf0 @deepak deepak committed May 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit a523c87

Please sign in to comment.