aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/verification_test.rb
diff options
context:
space:
mode:
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