Welcome to mirror list, hosted at ThFree Co, Russian Federation.

keep_duplicated_package_files_enum_spec.rb « cleanup « packages « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d7f24a9edfd92df242dbd53bb7e7afcfcf337825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe GitlabSchema.types['PackagesCleanupKeepDuplicatedPackageFilesEnum'] do
  it 'exposes all options' do
    expect(described_class.values.keys)
      .to contain_exactly(*Types::Packages::Cleanup::KeepDuplicatedPackageFilesEnum::OPTIONS_MAPPING.values)
  end

  it 'uses all possible options from model' do
    all_options = Packages::Cleanup::Policy::KEEP_N_DUPLICATED_PACKAGE_FILES_VALUES
    expect(described_class::OPTIONS_MAPPING.keys).to contain_exactly(*all_options)
  end
end