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

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

RSpec.configure do |config|
  config.include Ci::PartitioningTesting::PartitionIdentifiers

  config.around(:each, :ci_partitionable) do |example|
    Ci::PartitioningTesting::SchemaHelpers.with_routing_tables do
      example.run
    end
  end

  config.before(:all) do
    Ci::PartitioningTesting::SchemaHelpers.setup
  end

  config.after(:all) do
    Ci::PartitioningTesting::SchemaHelpers.teardown
  end
end