aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/verification_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-02-09 20:05:11 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-02-09 20:05:11 +0000
commit76540822609415dc5cfa8ea31bfafea602373a27 (patch)
tree962efec0474b2b30f2edded13b2d95e93e68f603 /actionpack/test/controller/verification_test.rb
parent3a38c829e0790a4341dcb5784118731361f6c788 (diff)
downloadrails-76540822609415dc5cfa8ea31bfafea602373a27.tar.gz
rails-76540822609415dc5cfa8ea31bfafea602373a27.tar.bz2
rails-76540822609415dc5cfa8ea31bfafea602373a27.zip
Major components cleanup and speedup. Closes #3527.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/verification_test.rb')
-rw-r--r--actionpack/test/controller/verification_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/test/controller/verification_test.rb b/actionpack/test/controller/verification_test.rb
index fc49d5da67..a8b2bf4499 100644
--- a/actionpack/test/controller/verification_test.rb
+++ b/actionpack/test/controller/verification_test.rb
@@ -207,10 +207,12 @@ class VerificationTest < Test::Unit::TestCase
assert_redirected_to :action => "unguarded"
end
- def test_guarded_post_and_calls_render
+ def test_guarded_post_and_calls_render_succeeds
post :must_be_post
assert_equal "Was a post!", @response.body
+ end
+ def test_guarded_post_and_calls_render_fails
get :must_be_post
assert_response 500
assert_equal "Must be post", @response.body