Improve fast specs helper to autoload the library
This commit is contained in:
parent
f1a2ada1c0
commit
1736d74408
1 changed files with 3 additions and 9 deletions
|
@ -3,14 +3,8 @@ require 'bundler/setup'
|
||||||
ENV['GITLAB_ENV'] = 'test'
|
ENV['GITLAB_ENV'] = 'test'
|
||||||
ENV['IN_MEMORY_APPLICATION_SETTINGS'] = 'true'
|
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 '../config/settings'
|
||||||
require_relative '../lib/gitlab' unless defined?(Gitlab.config)
|
|
||||||
|
|
||||||
require_relative 'support/rspec'
|
require_relative 'support/rspec'
|
||||||
|
require 'active_support/all'
|
||||||
|
|
||||||
|
ActiveSupport::Dependencies.autoload_paths << 'lib'
|
||||||
|
|
Loading…
Reference in a new issue