debian-mirror-gitlab/spec/support/helpers/ci/partitioning_helpers.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
296 B
Ruby
Raw Normal View History

2023-03-04 22:38:38 +05:30
# 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