14 lines
492 B
Ruby
14 lines
492 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
require 'spec_helper'
|
||
|
|
||
|
RSpec.describe GitlabSchema.types['ContainerRepositoryCleanupStatus'] do
|
||
|
it 'exposes all statuses' do
|
||
|
expected_keys = ContainerRepository.expiration_policy_cleanup_statuses
|
||
|
.keys
|
||
|
.map { |k| k.gsub('cleanup_', '') }
|
||
|
.map(&:upcase)
|
||
|
expect(described_class.values.keys).to contain_exactly(*expected_keys)
|
||
|
end
|
||
|
end
|