debian-mirror-gitlab/spec/helpers/container_registry_helper_spec.rb
2022-05-07 20:08:51 +05:30

19 lines
524 B
Ruby

# 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