debian-mirror-gitlab/spec/factories/application_settings.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
277 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2018-03-17 18:26:18 +05:30
FactoryBot.define do
2017-09-10 17:25:29 +05:30
factory :application_setting do
2019-12-21 20:55:43 +05:30
default_projects_limit { 42 }
2020-04-22 19:07:51 +05:30
import_sources { [] }
2022-06-21 17:19:12 +05:30
restricted_visibility_levels { [] }
2022-07-23 23:45:48 +05:30
after(:build) do |settings|
settings.ensure_key_restrictions!
end
2017-09-10 17:25:29 +05:30
end
end