]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/cors_test.rb
Check if db is writable on oauth authorization pages
[rails.git] / test / integration / cors_test.rb
index 82e8346469cff7828e221fff90faada2164a8e12..c35f73d349d7c90f415d73c6e7935feabafeb8c2 100644 (file)
@@ -9,7 +9,7 @@ class CORSTest < ActionDispatch::IntegrationTest
 
     assert_response :success
     assert_equal "*", response.headers["Access-Control-Allow-Origin"]
-    assert_nil 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