From 4a2ecfe8b31f111de9387f320dcadb60c4790be9 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 9 Jul 2013 18:21:34 +0100 Subject: [PATCH] Use the standard ruby instance_methods call Rails 3 has an instance_methods_name extension that returns strings instead of symbols, but that goes away in Rails 4 so just use the standard routine instead. --- test/integration/cors_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.2