Should be calling respond_to? rather than respond_to_missing?
This commit is contained in:
parent
238cee1d8e
commit
52e2619111
|
@ -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
|
Loading…
Reference in New Issue