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 e864ff7259 Add backward compatibility for testing cookies
This commit restores the ability to assign cookies for testing via
@request.env['HTTP_COOKIE'] and @request.cookies, e.g:

    @request.env['HTTP_COOKIE'] = 'user_name=david'
    get :index
    assert_equal 'david', cookies[:user_name]

and

    @request.cookies[:user_name] = 'david'
    get :index
    assert_equal 'david', cookies[:user_name]

Assigning via cookies[] is the preferred method and will take precedence
over the other two methods. This is so that cookies set in controller
actions have precedence and are carried over between calls to get, post, etc.
2011-06-05 12:34:27 +01:00
..
abstract_controller Remove extra white spaces on ActionPack docs. 2011-05-23 20:22:33 -03:00
action_controller Add backward compatibility for testing cookies 2011-06-05 12:34:27 +01:00
action_dispatch Add backward compatibility for testing cookies 2011-06-05 12:34:27 +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 Allow multiple sources in Sprockets helpers 2011-06-05 01:01:35 -05:00
abstract_controller.rb Refactor ActionMailer to not use hide_actions 2010-09-03 22:59:11 +02:00
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