Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #5457 from brianmario/typo-fix | Aaron Patterson | 2012-03-15 | 1 | -1/+1 |
| | | | | Fix typo in redirect test | ||||
* | Merge pull request #5456 from brianmario/redirect-sanitization | Aaron Patterson | 2012-03-15 | 1 | -0/+20 |
| | | | | Strip null bytes from Location header | ||||
* | Fix for redirect_to to respect urls with a network path reference like ↵ | Overbryd | 2011-12-05 | 1 | -0/+10 |
| | | | | "//asset.host.com/resources/1235" see issue #3856 | ||||
* | Methods like status and location are interfering with redirect_to [Closes #2511] | Franck Verrot | 2011-08-14 | 1 | -0/+5 |
| | |||||
* | delete repeated code | Aaron Patterson | 2010-10-01 | 1 | -18/+0 |
| | |||||
* | Make redirect_to accept blocks [#5643 state:resolved] | Nando Vieira | 2010-09-24 | 1 | -0/+38 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Removed deprecated RouteSet API, still many tests fail | Piotr Sarnacki | 2010-09-05 | 1 | -1/+1 |
| | |||||
* | Revert "Setup explicit requires for files with exceptions. Removed them from ↵ | José Valim | 2010-09-02 | 1 | -1/+0 |
| | | | | | | | | autoloading." Booting a new Rails application does not work after this commit [#5359 state:open] This reverts commit 38a421b34d0b414564e919f67d339fac067a56e6. | ||||
* | Setup explicit requires for files with exceptions. Removed them from ↵ | Łukasz Strzałkowski | 2010-09-02 | 1 | -0/+1 |
| | | | | | | autoloading. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Require persisted? in ActiveModel::Lint and remove new_record? and ↵ | José Valim | 2010-02-21 | 1 | -9/+9 |
| | | | | destroyed? methods. ActionPack does not care if the resource is new or if it was destroyed, it cares only if it's persisted somewhere or not. | ||||
* | Use new routing dsl in tests | Joshua Peek | 2009-12-08 | 1 | -2/+2 |
| | |||||
* | Cleanup route reloading in tests. Prefer with_routing over using ↵ | Joshua Peek | 2009-08-16 | 1 | -11/+13 |
| | | | | ActionController::Routing::Routes directly | ||||
* | Add test ensuring redirect_to uses the given protocol [#2886] | Dan Croak | 2009-08-08 | 1 | -0/+10 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | AMo conversion helper | Joshua Peek | 2009-07-21 | 1 | -1/+2 |
| | |||||
* | Define ActiveModel API Compliance | Yehuda Katz | 2009-07-20 | 1 | -1/+1 |
| | | | | | | - Define to_model on AR - Define to_model on ActiveModel::APICompliant - Update test fixtures to be API Compliant - Start using to_model in AP | ||||
* | Move model naming into ActiveModel | Joshua Peek | 2009-06-17 | 1 | -0/+1 |
| | |||||
* | assert_redirect_to's partial hash matching was deprecated in 2-3 stable ↵ | Joshua Peek | 2009-05-04 | 1 | -7/+0 |
| | | | | 7f1f16c01 | ||||
* | Deprecate assert_redirect_to's partial hash matching | Joshua Peek | 2009-05-02 | 1 | -2/+4 |
| | |||||
* | Ruby 1.9 compat: rename deprecated assert_raises to assert_raise. | Jeremy Kemper | 2009-03-08 | 1 | -2/+2 |
| | | | | [#1617 state:resolved] | ||||
* | Move controller assertions from base TestCase to AC:: and AV::TestCase | Jeremy Kemper | 2008-11-07 | 1 | -12/+4 |
| | |||||
* | Fixed regex in redirect_to to fully support URI schemes [#1247 state:committed] | Seth Fitzsimmons | 2008-10-30 | 1 | -0/+10 |
| | | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com> | ||||
* | Fix file permissions | Tarmo Tänav | 2008-07-31 | 1 | -0/+0 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | AbstractRequest.relative_url_root is no longer automatically configured by a ↵ | Joshua Peek | 2008-07-24 | 1 | -55/+54 |
| | | | | HTTP header. It can now be set in your configuration environment with config.action_controller.relative_url_root | ||||
* | Restore support for partial matches in assert_redirected_to | Michael Koziarski | 2008-07-12 | 1 | -0/+5 |
| | | | | If both the actual redirection and the asserted redirection are hashes, succeed if the asserted redirection is a strict subset of the actual redirection. | ||||
* | Simplify the implementation of assert_redirected_to to normalise the urls ↵ | Michael Koziarski | 2008-07-04 | 1 | -16/+3 |
| | | | | | | before comparing. Also allows for a simpler implementation of redirect_to without most of the recursion. Also allows for assert_redirected_to @some_record | ||||
* | Ensure RJS redirect_to doesn't html-escapes string argument. Closes #8546 | Pratik Naik | 2008-04-02 | 1 | -0/+20 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9212 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | don't misbehave when redirecting to nil. Closes #10272 [farleyknight] | Michael Koziarski | 2008-01-12 | 1 | -0/+11 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8633 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | require abstract_unit directly since test is in load path | Jeremy Kemper | 2008-01-05 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8564 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Improve the error message for assert_redirected_to. Closes #7337 [mikong, ↵ | Jeremy Kemper | 2007-10-16 | 1 | -2/+2 |
| | | | | | | sandofsky] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7934 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Add :status to redirect_to allowing users to choose their own response code ↵ | Michael Koziarski | 2007-10-09 | 1 | -0/+78 |
| | | | | | | without manually setting headers. Closes #8297 [codahale, chasgrundy] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7820 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Removed deprecated parameters_for_method_reference concept (legacy from ↵ | David Heinemeier Hansson | 2007-05-12 | 1 | -0/+40 |
| | | | | | | before named routes) [DHH] Added record identification with polymorphic routes for ActionController::Base#url_for and ActionView::Base#url_for [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6729 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Revert [6430] since the test is faulty. References #7837, closes #7842. | Jeremy Kemper | 2007-03-16 | 1 | -10/+0 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6435 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Undeprecate redirect_to with Hash argument and additional url_for ↵ | Jeremy Kemper | 2007-03-16 | 1 | -0/+10 |
| | | | | | | parameters. Closes #7837. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6430 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Deprecation: remove deprecated url_for(:symbol, *args) and ↵ | Jeremy Kemper | 2007-03-13 | 1 | -19/+3 |
| | | | | | | redirect_to(:symbol, *args) controller methods. Use named routes instead. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6412 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | redirect deprecation tests | Jeremy Kemper | 2006-09-04 | 1 | -9/+22 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4971 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Diff compared options with #assert_redirected_to [Rick] | Rick Olson | 2006-04-22 | 1 | -5/+5 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4248 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added nicer message for assert_redirected_to (closes #4294) [court3nay, ↵ | Rick Olson | 2006-03-19 | 1 | -0/+14 |
| | | | | | | Chris McGrath] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3969 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Raise a RedirectBackError if redirect_to :back is called when theres no ↵ | David Heinemeier Hansson | 2006-01-22 | 1 | -0/+9 |
| | | | | | | HTTP_REFERER defined (closes #3049) [kevin.clark@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3459 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added redirect_to :back as a short-hand for ↵ | David Heinemeier Hansson | 2005-11-02 | 1 | -0/+10 |
| | | | | | | redirect_to(request.env["HTTP_REFERER"]) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2848 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Make sure assigns are built for every request when testing #1866 | Jamis Buck | 2005-07-31 | 1 | -0/+10 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1961 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Improved performance with 5-30% through a series of Action Pack ↵ | David Heinemeier Hansson | 2005-07-23 | 1 | -1/+1 |
| | | | | | | optimizations #1811 [Stefan Kaes] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1905 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added more tests on assert_redirected_to #1581 [Rick Olson] | David Heinemeier Hansson | 2005-07-02 | 1 | -0/+55 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1609 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fixed assert_redirected_to to work with :only_path => false #1204 [Alisdair ↵ | David Heinemeier Hansson | 2005-04-30 | 1 | -1/+10 |
| | | | | | | McDiarmid] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1251 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fixed tests | David Heinemeier Hansson | 2005-02-24 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@786 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added Base#render_to_string to parse a template and get the result back as a ↵ | David Heinemeier Hansson | 2005-02-23 | 1 | -31/+23 |
| | | | | | | string #479 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Initial | David Heinemeier Hansson | 2004-11-24 | 1 | -0/+44 |
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |