1. 06 1月, 2012 3 次提交
  2. 03 1月, 2012 1 次提交
  3. 15 12月, 2011 1 次提交
  4. 07 12月, 2011 1 次提交
    • P
      Fix bug in assert_template when using only `:layout` option · 0460b3a4
      Prem Sichanugrist 提交于
      Currently if you're do this:
      
          assert_template :layout => "foo"
      
      Regardless of what layout you were using, the test will always pass. This was broken since the introduction of :layout option in [d9375f3f].
      
      We have a lot of test cases in actionpack/test/controller/layout_test.rb that use this feature. This will make sure that those test cases are not true negative.
      0460b3a4
  5. 03 10月, 2011 2 次提交
  6. 04 9月, 2011 1 次提交
  7. 23 8月, 2011 2 次提交
  8. 14 8月, 2011 1 次提交
  9. 01 8月, 2011 1 次提交
  10. 20 6月, 2011 1 次提交
  11. 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
  12. 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
  13. 24 5月, 2011 1 次提交
  14. 22 5月, 2011 2 次提交
  15. 18 5月, 2011 1 次提交
  16. 17 5月, 2011 1 次提交
  17. 28 4月, 2011 1 次提交
  18. 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
  19. 21 11月, 2010 1 次提交
  20. 07 11月, 2010 2 次提交
  21. 18 10月, 2010 1 次提交
  22. 04 10月, 2010 2 次提交
  23. 30 9月, 2010 1 次提交
  24. 29 9月, 2010 1 次提交
  25. 28 9月, 2010 1 次提交
  26. 27 9月, 2010 2 次提交
  27. 26 9月, 2010 1 次提交
  28. 27 8月, 2010 1 次提交
  29. 24 8月, 2010 1 次提交
  30. 14 8月, 2010 2 次提交
  31. 25 7月, 2010 1 次提交