]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/cors_test.rb
Inline validation errors on sign up page
[rails.git] / test / integration / cors_test.rb
index 827db7c93f81af1e79a007d468e38177c3916786..b1323c8194849bcc40ba2ed491acc290a23223ee 100644 (file)
@@ -3,7 +3,7 @@ require File.dirname(__FILE__) + '/../test_helper'
 class CORSTest < ActionController::IntegrationTest
   # Rails 4 adds a built-in `options` method. When we upgrade, we can remove
   # this definition.
-  unless instance_method_names.include?("options")
+  unless instance_methods.include?(:options)
     def options(*args)
       reset! unless integration_session
       @html_document = nil