debian-mirror-gitlab/spec/fast_spec_helper.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
983 B
Ruby
Raw Normal View History

2019-12-21 20:55:43 +05:30
# frozen_string_literal: true
2022-11-25 23:54:43 +05:30
if $LOADED_FEATURES.include?(File.expand_path('spec_helper.rb', __dir__))
2021-01-29 00:20:46 +05:30
# There's no need to load anything here if spec_helper is already loaded
# because spec_helper is more extensive than fast_spec_helper
return
end
2021-11-11 11:23:49 +05:30
require_relative '../config/bundler_setup'
2018-10-15 14:42:47 +05:30
ENV['GITLAB_ENV'] = 'test'
ENV['IN_MEMORY_APPLICATION_SETTINGS'] = 'true'
2023-05-27 22:25:52 +05:30
require './spec/deprecation_warnings'
2022-10-11 01:57:18 +05:30
# Enable zero monkey patching mode before loading any other RSpec code.
RSpec.configure(&:disable_monkey_patching!)
2023-05-27 22:25:52 +05:30
require 'active_support/all'
require 'pry'
require_relative 'rails_autoload'
2018-10-15 14:42:47 +05:30
require_relative '../config/settings'
require_relative 'support/rspec'
2023-04-23 21:23:45 +05:30
require_relative '../lib/gitlab/utils'
require_relative '../lib/gitlab/utils/strong_memoize'
2018-11-08 19:23:39 +05:30
2022-05-07 20:08:51 +05:30
require_relative 'simplecov_env'
SimpleCovEnv.start!
2019-02-15 15:39:39 +05:30
ActiveSupport::XmlMini.backend = 'Nokogiri'
2021-09-30 23:02:18 +05:30
2023-05-27 22:25:52 +05:30
# Consider tweaking configuration in `spec/support/rspec.rb` which is also
# used by `spec/spec_helper.rb`.