Permalink
Browse files

Test correct method behaviour.

  • Loading branch information...
miloops committed Sep 29, 2010
1 parent 6268815 commit bc0e7f4e374d4f72d1254f51e8c116f358826855
@@ -25,6 +25,10 @@ def non_erb_block_content_for
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 @@ def test_non_erb_block_content_for
end
def test_proper_block_detection
- @todo = "some todo"
get :proper_block_detection
+ assert_equal "some todo", @response.body
end
private
@@ -1 +1 @@
-<%= @todo %>
+<%= @todo %>

0 comments on commit bc0e7f4

Please sign in to comment.