diff options
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/capture_test.rb | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/actionpack/test/controller/capture_test.rb b/actionpack/test/controller/capture_test.rb index 42ec2568da..7ec5f32a37 100644 --- a/actionpack/test/controller/capture_test.rb +++ b/actionpack/test/controller/capture_test.rb @@ -8,6 +8,14 @@ class CaptureController < ActionController::Base render :layout => "talk_from_action" end + def content_for_with_parameter + render :layout => "talk_from_action" + end + + def content_for_concatenated + render :layout => "talk_from_action" + end + def erb_content_for render :layout => "talk_from_action" end @@ -49,8 +57,18 @@ class CaptureTest < Test::Unit::TestCase assert_equal expected_content_for_output, @response.body end + def test_should_concatentate_content_for + get :content_for_concatenated + assert_equal expected_content_for_output, @response.body + end + def test_erb_content_for - get :content_for + get :erb_content_for + assert_equal expected_content_for_output, @response.body + end + + def test_should_set_content_for_with_parameter + get :content_for_with_parameter assert_equal expected_content_for_output, @response.body end |