Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-09-04 21:40:26 +0300
committerValery Sizov <vsv2711@gmail.com>2015-09-09 11:27:03 +0300
commitb7431ec042bc14052c407fd277177681e189c892 (patch)
tree2abe23e6861186d0c0d793b3a51ad99047b2602f /features/steps/groups.rb
parent349054e0ab4b03c9e259ed342af6cbb4e22936cd (diff)
Make all group public
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 18a1c4d32ce..45201c85f26 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")