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:
parent
cc3e738d89
commit
be7ab83b64
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue