aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-02-12 19:35:30 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-02-12 19:35:30 +0000
commit61a6a440cb8bc4694828c437fb1996db270c9ee6 (patch)
tree9ea9e831e453537f9d5ca923ac5543dc25978b68 /actionpack/CHANGELOG
parent2c110b825e743f62c84a0c3e247ad524a9ac81c6 (diff)
downloadrails-61a6a440cb8bc4694828c437fb1996db270c9ee6.tar.gz
rails-61a6a440cb8bc4694828c437fb1996db270c9ee6.tar.bz2
rails-61a6a440cb8bc4694828c437fb1996db270c9ee6.zip
Added follow_redirect method for functional tests that'll get-request the redirect that was made.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@585 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r--actionpack/CHANGELOG12
1 files changed, 12 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index ce7e0a1e42..771e99c1df 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -1,5 +1,17 @@
*SVN*
+* Added follow_redirect method for functional tests that'll get-request the redirect that was made. Example:
+
+ def test_create_post
+ post :create, "post" => { "title" => "Exciting!" }
+ assert_redirected_to :action => "show"
+
+ follow_redirect
+ assert_rendered_file "post/show"
+ end
+
+ Limitation: Only works for redirects to other actions within the same controller.
+
* Fixed double requiring of models with the same name as the controller
* Fixed that query params could be forced to nil on a POST due to the raw post fix #562 [moriq@moriq.com]