diff --git a/features/support/poltergeist.rb b/features/support/poltergeist.rb index bbcfd251..5160e10e 100644 --- a/features/support/poltergeist.rb +++ b/features/support/poltergeist.rb @@ -1,2 +1,7 @@ require 'capybara/poltergeist' -Capybara.javascript_driver = :poltergeist + +Capybara.register_driver :poltergeist_debug do |app| + Capybara::Poltergeist::Driver.new(app, :inspector => true) +end + +Capybara.javascript_driver = :poltergeist_debug