Methods
- B
- R
- S
- T
-
- test_render_file,
- test_render_file_with_locals,
- test_render_inline,
- test_render_partial,
- test_render_with_file_in_layout,
- test_render_with_handler_without_streaming_support,
- test_render_with_layout,
- test_render_with_layout_which_has_render_inline,
- test_render_with_layout_which_renders_another_partial,
- test_render_with_nested_layout,
- test_render_with_nested_streaming_multiple_yields_provide_and_content_for,
- test_render_with_streaming_multiple_yields_provide_and_content_for,
- test_render_with_streaming_with_fake_yields_and_streaming_buster,
- test_render_without_layout,
- test_streaming_works
Instance Public methods
buffered_render(options)
Link
render_body(options)
Link
setup()
Link
# File actionpack/test/template/streaming_render_test.rb, line 8 def setup view_paths = ActionController::Base.view_paths @assigns = { :secret => 'in the sauce', :name => nil } @view = ActionView::Base.new(view_paths, @assigns) @controller_view = TestController.new.view_context end
test_render_file()
Link
test_render_file_with_locals()
Link
test_render_inline()
Link
test_render_partial()
Link
test_render_with_file_in_layout()
Link
test_render_with_handler_without_streaming_support()
Link
test_render_with_layout()
Link
test_render_with_layout_which_has_render_inline()
Link
test_render_with_layout_which_renders_another_partial()
Link
# File actionpack/test/template/streaming_render_test.rb, line 74 def test_render_with_layout_which_renders_another_partial assert_equal %Q(partial html\nHello world!\n), buffered_render(:template => "test/hello_world", :layout => "layouts/yield_with_render_partial_inside") end
test_render_with_nested_layout()
Link
# File actionpack/test/template/streaming_render_test.rb, line 79 def test_render_with_nested_layout assert_equal %Q(<title>title</title>\n\n<div id="column">column</div>\n<div id="content">content</div>\n), buffered_render(:template => "test/nested_layout", :layout => "layouts/yield") end
test_render_with_nested_streaming_multiple_yields_provide_and_content_for()
Link
# File actionpack/test/template/streaming_render_test.rb, line 103 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
test_render_with_streaming_multiple_yields_provide_and_content_for()
Link
test_render_with_streaming_with_fake_yields_and_streaming_buster()
Link
test_render_without_layout()
Link
test_streaming_works()
Link
# File actionpack/test/template/streaming_render_test.rb, line 28 def test_streaming_works content = [] body = render_body(:template => "test/hello_world", :layout => "layouts/yield") body.each do |piece| content << piece end assert_equal "<title>", content[0] assert_equal "", content[1] assert_equal "</title>\n", content[2] assert_equal "Hello world!", content[3] assert_equal "\n", content[4] end