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

fast_spec_helper.rb « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b3fe76fb1501f5130645360f4ec73e74f4b136df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'bundler/setup'

require 'settingslogic'

ENV['GITLAB_ENV'] = 'test'
ENV['RAILS_ENV'] = 'test'
ENV['IN_MEMORY_APPLICATION_SETTINGS'] = 'true'

unless Kernel.respond_to?(:require_dependency)
  module Kernel
    alias_method :require_dependency, :require
  end
end

# Defines Gitlab and Gitlab.config which are at the center of the app
unless defined?(Gitlab) && Gitlab.respond_to?(:config)
  require_relative '../lib/settings'
  require_relative '../config/initializers/2_app'
end

require_relative 'support/rspec'