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

rake.rb « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 73590046f133aaa6a04db2e5141b7508c51b9683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

require_relative 'helpers/rake_helpers'

RSpec.configure do |config|
  config.include RakeHelpers, type: :task

  config.before(:all, type: :task) do
    require 'rake'

    Rake.application.rake_require 'tasks/gitlab/helpers'
    Rake::Task.define_task :environment
  end

  config.after(:all, type: :task) do
    # Fast specs cannot load `spec/support/database_cleaner` and its RSpec
    # helper DbCleaner.
    delete_from_all_tables!(except: deletion_except_tables) if defined?(DbCleaner)
  end
end