Commit 7c965a24 authored by Mark Chao's avatar Mark Chao

Fix spec

parent cfcc7043
......@@ -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')
......
......@@ -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
......@@ -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,
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment