Use the standard ruby instance_methods call
authorTom Hughes <tom@compton.nu>
Tue, 9 Jul 2013 17:21:34 +0000 (18:21 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 9 Jul 2013 17:26:54 +0000 (18:26 +0100)
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

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