debian-mirror-gitlab/spec/support/helpers/ci/partitioning_helpers.rb
2023-03-04 22:38:38 +05:30

11 lines
296 B
Ruby

# frozen_string_literal: true
module Ci
module PartitioningHelpers
def stub_current_partition_id(id = Ci::PartitioningTesting::PartitionIdentifiers.ci_testing_partition_id)
allow(::Ci::Pipeline)
.to receive(:current_partition_value)
.and_return(id)
end
end
end