1. 14 8月, 2011 1 次提交
  2. 20 6月, 2011 1 次提交
  3. 05 6月, 2011 1 次提交
    • A
      Add backward compatibility for testing cookies · e864ff72
      Andrew White 提交于
      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.
      e864ff72
  4. 04 6月, 2011 1 次提交
    • A
      Refactor ActionController::TestCase cookies · d4658d86
      Andrew White 提交于
      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.
      d4658d86
  5. 24 5月, 2011 1 次提交
  6. 22 5月, 2011 2 次提交
  7. 18 5月, 2011 1 次提交
  8. 17 5月, 2011 1 次提交
  9. 28 4月, 2011 1 次提交
  10. 06 3月, 2011 1 次提交
    • A
      Improve testing of cookies in functional tests: · 31f09f9d
      Andrew White 提交于
      - cookies can be set using string or symbol keys
      - cookies are preserved across calls to get, post, etc.
      - cookie names and values are escaped
      - cookies can be cleared using @request.cookies.clear
      
      [#6272 state:resolved]
      31f09f9d
  11. 21 11月, 2010 1 次提交
  12. 07 11月, 2010 2 次提交
  13. 18 10月, 2010 1 次提交
  14. 04 10月, 2010 2 次提交
  15. 30 9月, 2010 1 次提交
  16. 29 9月, 2010 1 次提交
  17. 28 9月, 2010 1 次提交
  18. 27 9月, 2010 2 次提交
  19. 26 9月, 2010 1 次提交
  20. 27 8月, 2010 1 次提交
  21. 24 8月, 2010 1 次提交
  22. 14 8月, 2010 2 次提交
  23. 25 7月, 2010 1 次提交
  24. 24 6月, 2010 1 次提交
  25. 22 6月, 2010 1 次提交
  26. 11 6月, 2010 1 次提交
  27. 07 6月, 2010 1 次提交
  28. 05 6月, 2010 1 次提交
  29. 03 5月, 2010 2 次提交
  30. 26 4月, 2010 1 次提交
  31. 25 4月, 2010 1 次提交
  32. 15 4月, 2010 2 次提交
  33. 09 4月, 2010 1 次提交