2021-09-30 23:02:18 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe Members::Projects::CreatorService do
|
|
|
|
it_behaves_like 'member creation' do
|
|
|
|
let_it_be(:source, reload: true) { create(:project, :public) }
|
|
|
|
let_it_be(:member_type) { ProjectMember }
|
|
|
|
end
|
|
|
|
|
|
|
|
describe '.access_levels' do
|
2022-05-07 20:08:51 +05:30
|
|
|
it 'returns Gitlab::Access.sym_options_with_owner' do
|
|
|
|
expect(described_class.access_levels).to eq(Gitlab::Access.sym_options_with_owner)
|
2021-09-30 23:02:18 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|