X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/60f2074baca1b36bf02b02be976a2527d60c5fef..cfb2f2988c0a396f2d2b167d3c75461b7e811e1c:/test/integration/cors_test.rb diff --git a/test/integration/cors_test.rb b/test/integration/cors_test.rb index 9ff7e360e..c35f73d34 100644 --- a/test/integration/cors_test.rb +++ b/test/integration/cors_test.rb @@ -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.media_type assert_equal "", response.body end @@ -21,7 +21,7 @@ class CORSTest < ActionDispatch::IntegrationTest assert_response :success assert_nil response.headers["Access-Control-Allow-Origin"] - assert_nil response.content_type + assert_nil response.media_type assert_equal "", response.body end end