summaryrefslogtreecommitdiff
path: root/features/steps/groups.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-14 15:28:42 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-14 15:28:42 +0000
commitb35d5a6a16d3ce390f21459e2989e8c41bce3150 (patch)
tree8639479bf5f05d7605b9e4de85e50adbd3897a81 /features/steps/groups.rb
parentc0c314c6bfe3640d724955d7d4eae7b9f7e1d2b1 (diff)
parent3e97de838c6a2a37e1daa5ab8c3cd1fa350b1a7e (diff)
downloadgitlab-ce-b35d5a6a16d3ce390f21459e2989e8c41bce3150.tar.gz
Merge branch 'public_profiles' into 'master'
Make all group public https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/1219# Internal issue - https://dev.gitlab.org/gitlab/gitlabhq/issues/1361 See merge request !1247
Diffstat (limited to 'features/steps/groups.rb')
-rw-r--r--features/steps/groups.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/features/steps/groups.rb b/features/steps/groups.rb
index a5c2eed4ddd..95bc9baf8d8 100644
--- a/features/steps/groups.rb
+++ b/features/steps/groups.rb
@@ -17,6 +17,26 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
find(:css, 'button.btn-new').click
end
+ step 'I should see group "Owned"' do
+ expect(page).to have_content '@owned'
+ end
+
+ step 'I am a signed out user' do
+ logout
+ end
+
+ step 'Group "Owned" has a public project "Public-project"' do
+ group = Group.find_by(name: "Owned")
+
+ @project = create :empty_project, :public,
+ group: group,
+ name: "Public-project"
+ end
+
+ step 'I should see project "Public-project"' do
+ expect(page).to have_content 'Public-project'
+ end
+
step 'I select "Mike" as "Reporter"' do
user = User.find_by(name: "Mike")