Deprecate webkit_debug driver

There's a configuration setting for this and having multiple, registered
drivers adds unnecessary complications.
This commit is contained in:
Joe Ferris 2016-04-05 14:24:01 -04:00
parent 56f2f3749e
commit e465afba05
1 changed files with 8 additions and 0 deletions

View File

@ -16,6 +16,14 @@ Capybara.register_driver :webkit do |app|
end
Capybara.register_driver :webkit_debug do |app|
warn "[DEPRECATION] The webkit_debug driver is deprecated. " \
"Please use Capybara::Webkit.configure instead:\n\n" \
" Capybara::Webkit.configure do |config|\n" \
" config.debug = true\n" \
" end\n\n" \
"This option is global and can be configured once" \
" (not in a `before` or `setup` block)."
Capybara::Webkit::Driver.new(
app,
Capybara::Webkit::Configuration.to_hash.merge(debug: true)