Commit d0a7ac94 authored by Mark Chao's avatar Mark Chao

Fix spec

parent 616e5249
...@@ -30,7 +30,7 @@ describe 'Projects > Settings > User manages group links' do ...@@ -30,7 +30,7 @@ describe 'Projects > Settings > User manages group links' do
click_link('Share with group') click_link('Share with group')
select2(group_market.id, from: '#link_group_id') select2(group_market.id, from: '#link_group_id')
select('Master', from: 'link_group_access') select('Maintainer', from: 'link_group_access')
click_button('Share') click_button('Share')
......
...@@ -62,7 +62,7 @@ describe 'Projects > Settings > User manages project members' do ...@@ -62,7 +62,7 @@ describe 'Projects > Settings > User manages project members' do
page.within('.project-members-groups') do page.within('.project-members-groups') do
expect(page).to have_content('OpenSource') 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 end
end end
...@@ -20,7 +20,7 @@ describe('issue_note_actions component', () => { ...@@ -20,7 +20,7 @@ describe('issue_note_actions component', () => {
beforeEach(() => { beforeEach(() => {
props = { props = {
accessLevel: 'Master', accessLevel: 'Maintainer',
authorId: 26, authorId: 26,
canDelete: true, canDelete: true,
canEdit: true, canEdit: true,
...@@ -67,7 +67,7 @@ describe('issue_note_actions component', () => { ...@@ -67,7 +67,7 @@ describe('issue_note_actions component', () => {
beforeEach(() => { beforeEach(() => {
store.dispatch('setUserData', {}); store.dispatch('setUserData', {});
props = { props = {
accessLevel: 'Master', accessLevel: 'Maintainer',
authorId: 26, authorId: 26,
canDelete: false, canDelete: false,
canEdit: false, canEdit: false,
......
...@@ -203,14 +203,14 @@ describe ProjectTeam do ...@@ -203,14 +203,14 @@ describe ProjectTeam do
end end
describe "#human_max_access" do describe "#human_max_access" do
it 'returns Master role' do it 'returns Maintainer role' do
user = create(:user) user = create(:user)
group = create(:group) group = create(:group)
project = create(:project, namespace: group) project = create(:project, namespace: group)
group.add_master(user) 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 end
it 'returns Owner role' do 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