1. 19 12月, 2013 1 次提交
  2. 19 9月, 2013 1 次提交
    • D
      Fix incorrect assert_redirected_to failure message · 1dacfbab
      Derek Prior 提交于
      In some instances, `assert_redirected_to` assertion was returning an
      incorrect and misleading failure message when the assertion failed.
      This was due to a disconnect in how the assertion computes the redirect
      string for the failure message and how `redirect_to` computes the
      string that is actually used for redirection.
      
      I made the `_compute_redirect_to_loaction` method used by `redirect_to`
      public and call that from the method `assert_redirect_to` uses to
      calculate the URL.
      
      The reveals a new test failure due to the regex used by
      `_compute_redirect_to_location` allow `_` in the URL scheme.
      1dacfbab
  3. 08 3月, 2013 1 次提交
  4. 01 3月, 2013 1 次提交
  5. 06 1月, 2013 1 次提交
  6. 26 11月, 2012 1 次提交
  7. 24 11月, 2012 2 次提交
  8. 30 9月, 2012 1 次提交
    • H
      `assert_template` no more passing with what ever string that matches. · 19dff78d
      Hugo Roque 提交于
      Given Im rendering an template `/layout/hello.html.erb`, assert_template was
      passing with any string that matches. This behavior allowed false passing like:
      
      	assert_template "layout"
      	assert_template "out/hello"
      
      Now the passing possibilities are:
      
      	assert_template "layout/hello"
      	assert_template "hello"
      
      fixing assert_template bug when template matches expected, but not ends with
      
      Cherry Pick Merge: Fixes issue #3849 assert_template false positive
      
      taking redundant test off
      
      prevening incorrect assert_template when rendering with repeated names in path
      
      updating CHANGELOG with bugfix: assert_template false passing
      19dff78d
  9. 28 8月, 2012 1 次提交
  10. 05 5月, 2012 3 次提交
  11. 03 5月, 2012 1 次提交
  12. 25 4月, 2012 1 次提交
    • J
      Remove default match without specified method · 56cdc81c
      Jose and Yehuda 提交于
      In the current router DSL, using the +match+ DSL
      method will match all verbs for the path to the
      specified endpoint.
      
      In the vast majority of cases, people are
      currently using +match+ when they actually mean
      +get+. This introduces security implications.
      
      This commit disallows calling +match+ without
      an HTTP verb constraint by default. To explicitly
      match all verbs, this commit also adds a
      :via => :all option to +match+.
      
      Closes #5964
      56cdc81c
  13. 06 1月, 2012 3 次提交
  14. 04 1月, 2012 1 次提交
  15. 31 12月, 2011 1 次提交
  16. 17 12月, 2011 1 次提交
  17. 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
  18. 09 6月, 2011 1 次提交
  19. 18 11月, 2010 1 次提交
  20. 16 11月, 2010 1 次提交
  21. 18 10月, 2010 1 次提交
  22. 29 9月, 2010 2 次提交
  23. 27 9月, 2010 1 次提交
  24. 06 9月, 2010 2 次提交
  25. 05 9月, 2010 1 次提交
  26. 20 7月, 2010 1 次提交
  27. 03 5月, 2010 2 次提交
  28. 18 3月, 2010 2 次提交
  29. 03 3月, 2010 1 次提交
  30. 01 3月, 2010 1 次提交
  31. 26 2月, 2010 1 次提交