0e41564762
To make this happen, we need to conditionally add the group_saml strategy when running tests, but only on EE. This requires some changes to Gitlab.ee? so that it can be used before/without loading the Rails environment. We also have to change how we require a few files, so this can run outside of Rails.
13 lines
390 B
Ruby
13 lines
390 B
Ruby
require 'bundler/setup'
|
|
|
|
ENV['GITLAB_ENV'] = 'test'
|
|
ENV['IN_MEMORY_APPLICATION_SETTINGS'] = 'true'
|
|
|
|
require 'active_support/dependencies'
|
|
require_relative '../config/settings'
|
|
require_relative 'support/rspec'
|
|
require 'active_support/all'
|
|
|
|
ActiveSupport::Dependencies.autoload_paths << 'lib'
|
|
ActiveSupport::Dependencies.autoload_paths << 'ee/lib'
|
|
ActiveSupport::XmlMini.backend = 'Nokogiri'
|