debian-mirror-gitlab/spec/support/helpers/migrations_helpers/namespaces_helper.rb

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

16 lines
335 B
Ruby
Raw Normal View History

2023-06-20 00:43:36 +05:30
# 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