aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/assertions.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-06-26 05:23:41 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-06-26 05:23:41 +0000
commitee4c834ed2339eaff5dc888e2148a15b9cdbd615 (patch)
tree97efd58e7b37c081d3ecbcffde3ec98f1b89c563 /actionpack/lib/action_controller/assertions.rb
parent1bb676b6c0fd5f181e1b0b155be6bc6ffeb67d02 (diff)
downloadrails-ee4c834ed2339eaff5dc888e2148a15b9cdbd615.tar.gz
rails-ee4c834ed2339eaff5dc888e2148a15b9cdbd615.tar.bz2
rails-ee4c834ed2339eaff5dc888e2148a15b9cdbd615.zip
Added testing of named routes #1506 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1517 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/assertions.rb')
-rw-r--r--actionpack/lib/action_controller/assertions.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/assertions.rb b/actionpack/lib/action_controller/assertions.rb
index 4a6f4daae5..f2eb2fd2f4 100644
--- a/actionpack/lib/action_controller/assertions.rb
+++ b/actionpack/lib/action_controller/assertions.rb
@@ -26,6 +26,13 @@ module Test #:nodoc:
#
# For redirects within the same controller, you can even call follow_redirect and the redirect will be follow triggering another
# action call which can then be asserted against.
+ #
+ # == Testing named routes
+ #
+ # If you're using named routes, they can be easily tested using the original named routes methods straight in the test case.
+ # Example:
+ #
+ # assert_redirected_to page_url(:title => 'foo')
module Assertions
# Asserts that the response is one of the following types:
#