diff options
Diffstat (limited to 'spec/support/helpers/models/ci/partitioning_testing/rspec_hooks.rb')
-rw-r--r-- | spec/support/helpers/models/ci/partitioning_testing/rspec_hooks.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/spec/support/helpers/models/ci/partitioning_testing/rspec_hooks.rb b/spec/support/helpers/models/ci/partitioning_testing/rspec_hooks.rb index 3f0a2bb7f3b..a764e751bf5 100644 --- a/spec/support/helpers/models/ci/partitioning_testing/rspec_hooks.rb +++ b/spec/support/helpers/models/ci/partitioning_testing/rspec_hooks.rb @@ -1,23 +1,19 @@ # frozen_string_literal: true RSpec.configure do |config| - config.include Ci::PartitioningTesting::PartitionIdentifiers + config.include ::Ci::PartitioningTesting::PartitionIdentifiers config.around(:each, :ci_partitionable) do |example| - unless Ci::Build.table_name.to_s.starts_with?('p_') - skip 'Skipping partitioning tests until `ci_builds` is partitioned' - end - - Ci::PartitioningTesting::SchemaHelpers.with_routing_tables do + ::Ci::PartitioningTesting::SchemaHelpers.with_routing_tables do example.run end end config.before(:all) do - Ci::PartitioningTesting::SchemaHelpers.setup + ::Ci::PartitioningTesting::SchemaHelpers.setup end config.after(:all) do - Ci::PartitioningTesting::SchemaHelpers.teardown + ::Ci::PartitioningTesting::SchemaHelpers.teardown end end |