aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/capture_helper_test.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-03-15 18:29:21 +0100
committerJeremy Kemper <jeremy@bitsweat.net>2010-03-15 11:26:51 -0700
commita594a22267bfd3346e00923742c4aa7edad0cef7 (patch)
treec4c1932bd2380fac528329ec0416fc483c08b492 /actionpack/test/template/capture_helper_test.rb
parentc937da9e2fc14f74fb11d1ce605479c033ca29ee (diff)
downloadrails-a594a22267bfd3346e00923742c4aa7edad0cef7.tar.gz
rails-a594a22267bfd3346e00923742c4aa7edad0cef7.tar.bz2
rails-a594a22267bfd3346e00923742c4aa7edad0cef7.zip
with_output_buffer cannot assume there's an output_buffer
[#4182 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'actionpack/test/template/capture_helper_test.rb')
-rw-r--r--actionpack/test/template/capture_helper_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/template/capture_helper_test.rb b/actionpack/test/template/capture_helper_test.rb
index 2017a18806..f887c9ab5b 100644
--- a/actionpack/test/template/capture_helper_test.rb
+++ b/actionpack/test/template/capture_helper_test.rb
@@ -12,4 +12,10 @@ class CaptureHelperTest < ActionView::TestCase
assert content_for?(:title)
assert ! content_for?(:something_else)
end
+
+ def test_with_output_buffer_does_not_assume_there_is_an_output_buffer
+ av = ActionView::Base.new
+ assert_nil av.output_buffer
+ assert_equal "", av.with_output_buffer {}
+ end
end