Fix Spinach and Capybara dependencies

Closes #30347
This commit is contained in:
Stan Hu 2017-04-01 20:23:18 -07:00
parent 731d574d93
commit c0564c549d
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,3 @@
require 'spinach/capybara'
require 'capybara/poltergeist'
require 'capybara-screenshot/spinach'
@ -25,5 +24,8 @@ Capybara.ignore_hidden_elements = false
Capybara::Screenshot.prune_strategy = :keep_last_run
Spinach.hooks.before_run do
require 'spinach/capybara'
require 'capybara/rails'
TestEnv.eager_load_driver_server
end

View file

@ -172,7 +172,7 @@ module TestEnv
def eager_load_driver_server
return unless defined?(Capybara)
puts "Starting the Capybara driver' server..."
puts "Starting the Capybara driver server..."
Capybara.current_session.visit '/'
end