1. 23 9月, 2013 13 次提交
  2. 22 9月, 2013 9 次提交
  3. 21 9月, 2013 4 次提交
  4. 20 9月, 2013 11 次提交
  5. 19 9月, 2013 3 次提交
    • A
      Merge pull request #10362 from derekprior/dp-fix-assert-redirect-to · acd83a7e
      Andrew White 提交于
      Fix incorrect assert_redirected_to failure message
      acd83a7e
    • D
      Fix regex used to find URI schemes in redirect_to · a78c10d3
      Derek Prior 提交于
      The previous regex was allowing `_` in the URI scheme, which is not
      allowed by RFC 3986. This change brings the regex in line with the RFC.
      a78c10d3
    • 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