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:
parent
238cee1d8e
commit
52e2619111
1 changed files with 2 additions and 1 deletions
|
@ -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
|
Loading…
Reference in a new issue