summaryrefslogtreecommitdiff
path: root/spec/graphql/types/container_repository_cleanup_status_enum_spec.rb
blob: 36cfc789ee99cefa470df7bb84d265a74230a10a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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