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

View File

@ -1 +1 @@
<%= @todo %>
<%= @todo %>