diff options
author | Chris Hapgood <cch1@hapgoods.com> | 2009-11-06 17:02:55 -0500 |
---|---|---|
committer | Eloy Duran <eloy.de.enige@gmail.com> | 2009-11-07 00:42:07 +0100 |
commit | c2cfb201984f8dff2b3534163b6145fe2560eb80 (patch) | |
tree | 3ef9ec588ee8388fdf62d336a55b575960877d80 /actionpack/test/template | |
parent | b43964d6061f4a31320906172f763dd3dd188f4d (diff) | |
download | rails-c2cfb201984f8dff2b3534163b6145fe2560eb80.tar.gz rails-c2cfb201984f8dff2b3534163b6145fe2560eb80.tar.bz2 rails-c2cfb201984f8dff2b3534163b6145fe2560eb80.zip |
Share ActionView::TestCase's output_buffer with view for concat support.
[#3467 state:resolved]
Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/test_case_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/template/test_case_test.rb b/actionpack/test/template/test_case_test.rb index 37dcb86d80..05a409d05a 100644 --- a/actionpack/test/template/test_case_test.rb +++ b/actionpack/test/template/test_case_test.rb @@ -38,6 +38,11 @@ module ActionView assert_equal 'Eloy', render('developers/developer', :developer => stub(:name => 'Eloy')) end + test "can render a layout with block" do + assert_equal "Before (ChrisCruft)\n!\nAfter", + render(:layout => "test/layout_for_partial", :locals => {:name => "ChrisCruft"}) {"!"} + end + helper AnotherTestHelper test "additional helper classes can be specified as in a controller" do assert test_case.ancestors.include?(AnotherTestHelper) |