parent
731d574d93
commit
c0564c549d
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue