1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

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

View file

@ -108,6 +108,7 @@ module Capybara
end
end
# @api private
class ConfigureDeprecator
def initialize(config)
@config = config
@ -125,7 +126,7 @@ module Capybara
end
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