summaryrefslogtreecommitdiff
path: root/spec/support/helpers/ci/partitioning_helpers.rb
blob: 110199a31475d1b61dc908138d1e34d65d249d95 (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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