1require_relative '../lib/gitaly_server.rb' 2require_relative '../lib/gitlab/git.rb' 3require_relative 'support/sentry.rb' 4require 'timecop' 5require 'rspec-parameterized' 6require 'factory_bot' 7require 'pry' 8 9GITALY_RUBY_DIR = File.expand_path('..', __dir__).freeze 10TMP_DIR_NAME = 'tmp'.freeze 11TMP_DIR = File.join(GITALY_RUBY_DIR, TMP_DIR_NAME).freeze 12GITLAB_SHELL_DIR = File.join(TMP_DIR, 'gitlab-shell').freeze 13 14# overwrite HOME env variable so user global .gitconfig doesn't influence tests 15ENV["HOME"] = File.join(File.dirname(__FILE__), "/support/helpers/testdata/home") 16 17require 'test_repo_helper' 18 19Dir[File.join(__dir__, 'support/helpers/*.rb')].each { |f| require f } 20 21RSpec.configure do |config| 22 config.include FactoryBot::Syntax::Methods 23 24 config.before(:suite) do 25 FactoryBot.find_definitions 26 end 27end 28