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
@ -23,6 +23,12 @@ class BareTest < ActiveSupport::TestCase
|
||||
|
||||
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 New Issue
Block a user