This commit is contained in:
Mark Chao 2018-05-22 19:55:07 +08:00
parent cfcc7043fe
commit 7c965a24f5
4 changed files with 6 additions and 6 deletions

View file

@ -30,7 +30,7 @@ describe 'Projects > Settings > User manages group links' do
click_link('Share with group')
select2(group_market.id, from: '#link_group_id')
select('Master', from: 'link_group_access')
select('Maintainer', from: 'link_group_access')
click_button('Share')

View file

@ -62,7 +62,7 @@ describe 'Projects > Settings > User manages project members' do
page.within('.project-members-groups') do
expect(page).to have_content('OpenSource')
expect(first('.group_member')).to have_content('Master')
expect(first('.group_member')).to have_content('Maintainer')
end
end
end

View file

@ -20,7 +20,7 @@ describe('issue_note_actions component', () => {
beforeEach(() => {
props = {
accessLevel: 'Master',
accessLevel: 'Maintainer',
authorId: 26,
canDelete: true,
canEdit: true,
@ -67,7 +67,7 @@ describe('issue_note_actions component', () => {
beforeEach(() => {
store.dispatch('setUserData', {});
props = {
accessLevel: 'Master',
accessLevel: 'Maintainer',
authorId: 26,
canDelete: false,
canEdit: false,

View file

@ -179,14 +179,14 @@ describe ProjectTeam do
end
describe "#human_max_access" do
it 'returns Master role' do
it 'returns Maintainer role' do
user = create(:user)
group = create(:group)
project = create(:project, namespace: group)
group.add_master(user)
expect(project.team.human_max_access(user.id)).to eq 'Master'
expect(project.team.human_max_access(user.id)).to eq 'Maintainer'
end
it 'returns Owner role' do