aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2010-09-29 11:10:38 -0300
committerEmilio Tagua <miloops@gmail.com>2010-09-29 12:42:51 -0300
commitbc0e7f4e374d4f72d1254f51e8c116f358826855 (patch)
tree45ef7f9ae6c691b4f1572c0e40bb11060cabccd7 /actionpack/test
parent626881577949ffce8370e097aa3efb3fec47d4f5 (diff)
downloadrails-bc0e7f4e374d4f72d1254f51e8c116f358826855.tar.gz
rails-bc0e7f4e374d4f72d1254f51e8c116f358826855.tar.bz2
rails-bc0e7f4e374d4f72d1254f51e8c116f358826855.zip
Test correct method behaviour.
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/capture_test.rb6
-rw-r--r--actionpack/test/fixtures/test/proper_block_detection.erb2
2 files changed, 6 insertions, 2 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
diff --git a/actionpack/test/fixtures/test/proper_block_detection.erb b/actionpack/test/fixtures/test/proper_block_detection.erb
index 23564dbcee..b55efbb25d 100644
--- a/actionpack/test/fixtures/test/proper_block_detection.erb
+++ b/actionpack/test/fixtures/test/proper_block_detection.erb
@@ -1 +1 @@
-<%= @todo %>
+<%= @todo %> \ No newline at end of file