1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test/template/body_parts_test.rb
Joshua Peek a8b75c480f Functional test runner finalizes response just like the integration test runner. In both runners, the @response object will now behave the same.
Some functional tests will need to be updated if they are relying on preprocessed data on the response.
2009-05-02 14:57:40 -05:00

26 lines
623 B
Ruby

require 'abstract_unit'
class BodyPartsTest < ActionController::TestCase
RENDERINGS = [Object.new, Object.new, Object.new]
class TestController < ActionController::Base
def index
RENDERINGS.each do |rendering|
@template.punctuate_body! rendering
end
@performed_render = true
end
end
tests TestController
def test_body_parts
get :index
pending do
# TestProcess buffers body_parts into body
# TODO: Rewrite test w/o going through process
assert_equal RENDERINGS, @response.body_parts
end
assert_equal RENDERINGS.join, @response.body
end
end