summaryrefslogtreecommitdiff
path: root/spec/fast_spec_helper.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-05-11 13:28:26 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-05-11 13:33:10 +0200
commite9cf1020de206607c679ca8bdfd1414a2446fbb4 (patch)
treef6bb2e183142c8fa3a08fd19ceb26c1c38b9185d /spec/fast_spec_helper.rb
parentf1a2ada1c07a66d7bd0475748527b36e8c26bf62 (diff)
downloadgitlab-ce-e9cf1020de206607c679ca8bdfd1414a2446fbb4.tar.gz
Improve fast specs helper to autoload the library
Diffstat (limited to 'spec/fast_spec_helper.rb')
-rw-r--r--spec/fast_spec_helper.rb12
1 files changed, 3 insertions, 9 deletions
diff --git a/spec/fast_spec_helper.rb b/spec/fast_spec_helper.rb
index 978113a08a4..134eb25e4b1 100644
--- a/spec/fast_spec_helper.rb
+++ b/spec/fast_spec_helper.rb
@@ -3,14 +3,8 @@ require 'bundler/setup'
ENV['GITLAB_ENV'] = 'test'
ENV['IN_MEMORY_APPLICATION_SETTINGS'] = 'true'
-unless Object.respond_to?(:require_dependency)
- class Object
- alias_method :require_dependency, :require
- end
-end
-
-# Defines Settings and Gitlab.config which are at the center of the app
require_relative '../config/settings'
-require_relative '../lib/gitlab' unless defined?(Gitlab.config)
-
require_relative 'support/rspec'
+require 'active_support/all'
+
+ActiveSupport::Dependencies.autoload_paths << 'lib'