summaryrefslogtreecommitdiff
path: root/spec/features/projects
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2016-11-01 17:08:04 +0200
committerValery Sizov <valery@gitlab.com>2016-11-04 13:06:48 +0200
commitdcd70453a46f9fbf178382b49ff2b9af1937b982 (patch)
treec536413c619cdf9e95741c808aaaaf0c97c2ca7c /spec/features/projects
parent73ab9ba5f4dc3925b3473dcbb985440b38b65926 (diff)
downloadgitlab-ce-dcd70453a46f9fbf178382b49ff2b9af1937b982.tar.gz
Fix: Guest sees some repository details and gets 404
Diffstat (limited to 'spec/features/projects')
-rw-r--r--spec/features/projects/features_visibility_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/features/projects/features_visibility_spec.rb b/spec/features/projects/features_visibility_spec.rb
index e796ee570b7..09aa6758b5c 100644
--- a/spec/features/projects/features_visibility_spec.rb
+++ b/spec/features/projects/features_visibility_spec.rb
@@ -183,4 +183,19 @@ describe 'Edit Project Settings', feature: true do
end
end
end
+
+ # Regression spec for https://gitlab.com/gitlab-org/gitlab-ce/issues/24056
+ describe 'project statistic visibility' do
+ let!(:project) { create(:project, :private) }
+
+ before do
+ project.team << [member, :guest]
+ login_as(member)
+ visit namespace_project_path(project.namespace, project)
+ end
+
+ it "does not show project statistic for guest" do
+ expect(page).not_to have_selector('.project-stats')
+ end
+ end
end