summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-04-01 20:23:18 -0700
committerStan Hu <stanhu@gmail.com>2017-04-01 22:49:22 -0700
commitc0564c549deaff44268622bfc26c81ec0c73dae7 (patch)
tree0a5c44f06a210c975ae17eed2fc96fe6378366a7 /features
parent731d574d9359eca8cd37ef46e525bbc9603837a3 (diff)
downloadgitlab-ce-c0564c549deaff44268622bfc26c81ec0c73dae7.tar.gz
Fix Spinach and Capybara dependencies
Closes #30347
Diffstat (limited to 'features')
-rw-r--r--features/support/capybara.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/features/support/capybara.rb b/features/support/capybara.rb
index 33ca76bea8d..1e46b3faf0b 100644
--- a/features/support/capybara.rb
+++ b/features/support/capybara.rb
@@ -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