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.
This commit is contained in:
Tom Hughes 2013-07-09 18:21:34 +01:00
parent 1234561a78
commit 4a2ecfe8b3

View 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