Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-04-04 01:22:52 +0300
committerRémy Coutable <remy@rymai.me>2017-04-04 02:57:41 +0300
commite97d1ae036c6a686c32c7b0e5f6919f3d0566e96 (patch)
treefdfd6aa92e816afbc510db22fd3073739a6eda29 /features
parentd9aca741155f456711e37ea68a28a46d349af698 (diff)
Fix a Knapsack issue that would load support/capybara.rb before support/env.rb
Once https://github.com/ArturT/knapsack/issues/57 is solved and released in a new gem version, we can remove the KNAPSACK_TEST_DIR in .gitlab-ci.yml. Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'features')
-rw-r--r--features/support/capybara.rb3
-rw-r--r--features/support/env.rb4
2 files changed, 0 insertions, 7 deletions
diff --git a/features/support/capybara.rb b/features/support/capybara.rb
index 1e46b3faf0b..6da8aaac6cb 100644
--- a/features/support/capybara.rb
+++ b/features/support/capybara.rb
@@ -24,8 +24,5 @@ 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
diff --git a/features/support/env.rb b/features/support/env.rb
index 26cdd9d746d..06c804b1db7 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -5,10 +5,6 @@ ENV['RAILS_ENV'] = 'test'
require './config/environment'
require 'rspec/expectations'
-require_relative 'capybara'
-require_relative 'db_cleaner'
-require_relative 'rerun'
-
if ENV['CI']
require 'knapsack'
Knapsack::Adapters::SpinachAdapter.bind