Expect CORS preflight responses to not have a content type

https://github.com/cyu/rack-cors/pull/180
This commit is contained in:
Tom Hughes 2019-03-28 08:45:58 +00:00
parent 671c041f7d
commit 9e759dc030

View file

@ -9,7 +9,7 @@ class CORSTest < ActionDispatch::IntegrationTest
assert_response :success
assert_equal "*", response.headers["Access-Control-Allow-Origin"]
assert_equal "text/plain", response.content_type
assert_nil response.content_type
assert_equal "", response.body
end