1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

A test case to ensure that AC::Metal#response_body= always wraps the given value in an Array in both Ruby 1.8 and 1.9 (refs #3581)

This commit is contained in:
Akira Matsuda 2011-11-10 10:54:56 +09:00
parent cc3e738d89
commit be7ab83b64

View file

@ -23,6 +23,12 @@ module BareMetalTest
assert_equal "Hello world", string
end
test "response_body value is wrapped in an array when the value is a String" do
controller = BareController.new
controller.index
assert_equal ["Hello world"], controller.response_body
end
end
class HeadController < ActionController::Metal