aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/capture_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-09-29 20:28:51 +0200
committerJosé Valim <jose.valim@gmail.com>2010-09-29 20:28:51 +0200
commitd2ea2e1d5f0964866c4e333a4128049df8927d63 (patch)
tree2d7a65eb3e9d1fb3d824018c5901b7da4309bd37 /actionpack/test/controller/capture_test.rb
parenta617f6bc4c0e235d01db743cf88dd21457a36b7f (diff)
parent6371e5b99f933ebe462784b5272fdf12e9602e5a (diff)
downloadrails-d2ea2e1d5f0964866c4e333a4128049df8927d63.tar.gz
rails-d2ea2e1d5f0964866c4e333a4128049df8927d63.tar.bz2
rails-d2ea2e1d5f0964866c4e333a4128049df8927d63.zip
Merge remote branch 'miloops/warnings'
Diffstat (limited to 'actionpack/test/controller/capture_test.rb')
-rw-r--r--actionpack/test/controller/capture_test.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/actionpack/test/controller/capture_test.rb b/actionpack/test/controller/capture_test.rb
index eb426e855b..d78acb8ce8 100644
--- a/actionpack/test/controller/capture_test.rb
+++ b/actionpack/test/controller/capture_test.rb
@@ -25,6 +25,10 @@ class CaptureController < ActionController::Base
render :layout => "talk_from_action"
end
+ def proper_block_detection
+ @todo = "some todo"
+ end
+
def rescue_action(e) raise end
end
@@ -66,8 +70,8 @@ class CaptureTest < ActionController::TestCase
end
def test_proper_block_detection
- @todo = "some todo"
get :proper_block_detection
+ assert_equal "some todo", @response.body
end
private