diff options
Diffstat (limited to 'spec/factories/application_settings.rb')
-rw-r--r-- | spec/factories/application_settings.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/application_settings.rb b/spec/factories/application_settings.rb index c28d3c20a86..844e21df60c 100644 --- a/spec/factories/application_settings.rb +++ b/spec/factories/application_settings.rb @@ -5,5 +5,9 @@ FactoryBot.define do default_projects_limit { 42 } import_sources { [] } restricted_visibility_levels { [] } + + after(:build) do |settings| + settings.ensure_key_restrictions! + end end end |