summaryrefslogtreecommitdiff
path: root/spec/helpers/container_registry_helper_spec.rb
blob: 57641d4b5dfb84dfae9b0da98546ad8ce63f9940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe ContainerRegistryHelper do
  describe '#container_registry_expiration_policies_throttling?' do
    subject { helper.container_registry_expiration_policies_throttling? }

    it { is_expected.to eq(true) }

    context 'with container_registry_expiration_policies_throttling disabled' do
      before do
        stub_feature_flags(container_registry_expiration_policies_throttling: false)
      end

      it { is_expected.to eq(false) }
    end
  end
end