1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Test correct method behaviour.

This commit is contained in:
Emilio Tagua 2010-09-29 11:10:38 -03:00
parent 6268815779
commit bc0e7f4e37
2 changed files with 6 additions and 2 deletions

View file

@ -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