blob: 4e7aa63f969ef100d85fa9b4946fca40827d52ea (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
require 'abstract_unit'
class BodyPartsTest < ActionController::TestCase
RENDERINGS = [Object.new, Object.new, Object.new]
class TestController < ActionController::Base
def performed?
defined?(ActionController::Http) ? true : super
end
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(:old_base) 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
|