Should be calling respond_to? rather than respond_to_missing?

This commit is contained in:
Thomas Walpole 2017-11-13 09:26:17 -08:00
parent 238cee1d8e
commit 52e2619111
1 changed files with 2 additions and 1 deletions

View File

@ -108,6 +108,7 @@ module Capybara
end end
end end
# @api private
class ConfigureDeprecator class ConfigureDeprecator
def initialize(config) def initialize(config)
@config = config @config = config
@ -125,7 +126,7 @@ module Capybara
end end
def respond_to_missing?(m, include_private = false) def respond_to_missing?(m, include_private = false)
@config.respond_to_missing?(m, include_private) || Capybara.respond_to_missing?(m, include_private) @config.respond_to?(m) || Capybara.respond_to?(m) || super
end end
end end
end end