X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/7599f98957334d1924550205f7ba12a726de7eb0..f0feca800d91ac1d23eb63ca17a45d8fd4d41920:/test/integration/cors_test.rb diff --git a/test/integration/cors_test.rb b/test/integration/cors_test.rb index 827db7c93..b1323c819 100644 --- a/test/integration/cors_test.rb +++ b/test/integration/cors_test.rb @@ -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