mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-08-03 16:37:48 +00:00
30 lines
686 B
Ruby
30 lines
686 B
Ruby
# frozen_string_literal: true
|
|
|
|
if ENV['ACTIVE_CONTEXT_SIMPLECOV'] == '1'
|
|
require 'simplecov'
|
|
SimpleCov.start 'rails'
|
|
end
|
|
|
|
require 'active_context'
|
|
require 'active_support/all'
|
|
require 'logger'
|
|
require 'elasticsearch'
|
|
require 'opensearch'
|
|
require 'aws-sdk-core'
|
|
require 'redis'
|
|
require 'byebug'
|
|
|
|
Dir[File.join(__dir__, 'support/**/*.rb')].each { |f| require f }
|
|
|
|
RSpec.configure do |config|
|
|
# Enable flags like --only-failures and --next-failure
|
|
config.example_status_persistence_file_path = ".rspec_status"
|
|
|
|
# Disable RSpec exposing methods globally on `Module` and `main`
|
|
config.disable_monkey_patching!
|
|
|
|
config.expect_with :rspec do |c|
|
|
c.syntax = :expect
|
|
end
|
|
end
|