1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
This commit is contained in:
Jens Dahl Møllerhøj 2021-03-16 23:57:22 +01:00 committed by GitHub
parent 6655c78349
commit 7d10ce1c92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -331,7 +331,7 @@ module ActionController
assert_match "my.csv", @response.headers["Content-Disposition"] assert_match "my.csv", @response.headers["Content-Disposition"]
end end
def test_send_stream_with_optons def test_send_stream_with_options
get :send_stream_with_options get :send_stream_with_options
assert_equal %[{ name: "David", age: 41 }], @response.body assert_equal %[{ name: "David", age: 41 }], @response.body
assert_equal "application/json", @response.headers["Content-Type"] assert_equal "application/json", @response.headers["Content-Type"]