diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-06-26 16:33:49 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-06-26 16:33:49 +0200 |
commit | f2174f2dd07e83a02fd4bf8bb86deae8ce8fe122 (patch) | |
tree | 27b7c5e77b65c65ecc3cc9b0df252f12d2e40d88 | |
parent | 5300a8944e850a2aa75ba051ef12adcd176c3dcc (diff) | |
download | gitlab-ce-f2174f2dd07e83a02fd4bf8bb86deae8ce8fe122.tar.gz |
Merge group request access specs under one file
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r-- | spec/features/groups/members/member_cannot_request_access_to_his_project_spec.rb | 16 | ||||
-rw-r--r-- | spec/features/groups/members/requests_access_spec.rb (renamed from spec/features/groups/members/user_requests_access_spec.rb) | 9 |
2 files changed, 8 insertions, 17 deletions
diff --git a/spec/features/groups/members/member_cannot_request_access_to_his_project_spec.rb b/spec/features/groups/members/member_cannot_request_access_to_his_project_spec.rb deleted file mode 100644 index 135bb3572bc..00000000000 --- a/spec/features/groups/members/member_cannot_request_access_to_his_project_spec.rb +++ /dev/null @@ -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 diff --git a/spec/features/groups/members/user_requests_access_spec.rb b/spec/features/groups/members/requests_access_spec.rb index 3813308c237..eaf9d163896 100644 --- a/spec/features/groups/members/user_requests_access_spec.rb +++ b/spec/features/groups/members/requests_access_spec.rb @@ -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 |