aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/streaming_render_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/template/streaming_render_test.rb')
-rw-r--r--actionpack/test/template/streaming_render_test.rb12
1 files changed, 10 insertions, 2 deletions
diff --git a/actionpack/test/template/streaming_render_test.rb b/actionpack/test/template/streaming_render_test.rb
index 754ede9701..4d69081570 100644
--- a/actionpack/test/template/streaming_render_test.rb
+++ b/actionpack/test/template/streaming_render_test.rb
@@ -88,10 +88,18 @@ class FiberedTest < ActiveSupport::TestCase
end
def test_render_with_streaming_multiple_yields_provide_and_content_for
- assert_equal "Yes, \nthis works\n like a charm.", buffered_render(:template => "test/streaming", :layout => "layouts/streaming")
+ assert_equal "Yes, \nthis works\n like a charm.",
+ buffered_render(:template => "test/streaming", :layout => "layouts/streaming")
end
def test_render_with_streaming_with_fake_yields_and_streaming_buster
- assert_equal "This won't look\n good.", buffered_render(:template => "test/streaming_buster", :layout => "layouts/streaming")
+ assert_equal "This won't look\n good.",
+ buffered_render(:template => "test/streaming_buster", :layout => "layouts/streaming")
end
+
+ def test_render_with_nested_streaming_multiple_yields_provide_and_content_for
+ assert_equal "?Yes, \n\nthis works\n\n? like a charm.",
+ buffered_render(:template => "test/nested_streaming", :layout => "layouts/streaming")
+ end
+
end if defined?(Fiber) \ No newline at end of file