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

application_settings.rb « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 844e21df60cfdd7db754fe34b49a8ad44aa41886 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

FactoryBot.define do
  factory :application_setting do
    default_projects_limit { 42 }
    import_sources { [] }
    restricted_visibility_levels { [] }

    after(:build) do |settings|
      settings.ensure_key_restrictions!
    end
  end
end