Merge group request access specs under one file
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
5300a8944e
commit
f2174f2dd0
2 changed files with 8 additions and 17 deletions
|
@ -1,16 +0,0 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Groups > Members > Member cannot request access to his project', feature: true do
|
||||
let(:member) { create(:user) }
|
||||
let(:group) { create(:group) }
|
||||
|
||||
background do
|
||||
group.add_developer(member)
|
||||
gitlab_sign_in(member)
|
||||
visit group_path(group)
|
||||
end
|
||||
|
||||
scenario 'member does not see the request access button' do
|
||||
expect(page).not_to have_content 'Request Access'
|
||||
end
|
||||
end
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Groups > Members > User requests access', feature: true do
|
||||
feature 'Groups > Members > Requests access', feature: true do
|
||||
let(:user) { create(:user) }
|
||||
let(:owner) { create(:user) }
|
||||
let(:group) { create(:group, :public, :access_requestable) }
|
||||
|
@ -68,4 +68,11 @@ feature 'Groups > Members > User requests access', feature: true do
|
|||
expect(group.requesters.exists?(user_id: user)).to be_falsey
|
||||
expect(page).to have_content 'Your access request to the group has been withdrawn.'
|
||||
end
|
||||
|
||||
scenario 'member does not see the request access button' do
|
||||
group.add_owner(user)
|
||||
visit group_path(group)
|
||||
|
||||
expect(page).not_to have_content 'Request Access'
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue