debian-mirror-gitlab/spec/support/migrations_helpers/namespaces_helper.rb
2021-01-30 21:13:32 +05:30

14 lines
406 B
Ruby

# frozen_string_literal: true
module MigrationHelpers
module NamespacesHelpers
def create_namespace(name, visibility, options = {})
table(:namespaces).create!({
name: name,
path: name,
type: 'Group',
visibility_level: visibility
}.merge(options))
end
end
end