2018-03-29 05:49:08 -04:00
|
|
|
require 'bundler/setup'
|
|
|
|
|
2018-04-10 10:07:47 -04:00
|
|
|
ENV['GITLAB_ENV'] = 'test'
|
|
|
|
ENV['IN_MEMORY_APPLICATION_SETTINGS'] = 'true'
|
2018-03-29 05:49:08 -04:00
|
|
|
|
2018-04-23 07:02:07 -04:00
|
|
|
unless Object.respond_to?(:require_dependency)
|
|
|
|
class Object
|
2018-03-29 05:49:08 -04:00
|
|
|
alias_method :require_dependency, :require
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-04-10 10:07:47 -04:00
|
|
|
# Defines Gitlab and Gitlab.config which are at the center of the app
|
2018-04-23 10:12:19 -04:00
|
|
|
require_relative '../lib/gitlab' unless defined?(Gitlab.config)
|
2018-03-29 05:49:08 -04:00
|
|
|
|
|
|
|
require_relative 'support/rspec'
|