1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib
Andrew White d4658d86fe Refactor ActionController::TestCase cookies
Assigning cookies for test cases should now use cookies[], e.g:

  cookies[:email] = 'user@example.com'
  get :index
  assert_equal 'user@example.com', cookies[:email]

To clear the cookies, use clear, e.g:

  cookies.clear
  get :index
  assert_nil cookies[:email]

We now no longer write out HTTP_COOKIE and the cookie jar is
persistent between requests so if you need to manipulate the environment
for your test you need to do it before the cookie jar is created.
2011-06-04 07:09:11 +01:00
..
abstract_controller Remove extra white spaces on ActionPack docs. 2011-05-23 20:22:33 -03:00
action_controller Refactor ActionController::TestCase cookies 2011-06-04 07:09:11 +01:00
action_dispatch Refactor ActionController::TestCase cookies 2011-06-04 07:09:11 +01:00
action_pack Bump versions for rc1 2011-05-21 20:56:52 -05:00
action_view Merge pull request #1448 from ernie/attr_internal_require 2011-06-01 07:49:25 -07:00
sprockets Move SCSS generators and default templates from Rails to the Sass Railtie (d435726312601edb3ba6f97b34f562221f72c1f8). 2011-05-24 16:04:28 -07:00
abstract_controller.rb
action_controller.rb Restructure TemplateAssertions-related code to eliminate circular requires. 2011-05-22 23:13:44 -07:00
action_dispatch.rb Add ClosedError message to the initializer 2011-04-06 15:45:23 -03:00
action_pack.rb We're in 2011, let's update our license 2011-02-22 18:24:20 -02:00
action_view.rb Remove autoload for a couple of constants which don't exist anymore 2011-05-31 06:22:09 +04:00