summaryrefslogtreecommitdiff
path: root/features/steps/shared
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-03-30 23:53:42 -0700
committerStan Hu <stanhu@gmail.com>2015-04-09 01:04:53 -0700
commit3d2c3878408bd27af64293a22eff6857ad9b38dd (patch)
tree13e35e9024d7998d1c164c8a288562b3465d013f /features/steps/shared
parentf3f856029bc5f966c5a7ee24cf7efefdd20e6019 (diff)
downloadgitlab-ce-3d2c3878408bd27af64293a22eff6857ad9b38dd.tar.gz
Move current user to the top of the list in author/assignee filters
Closes #1321
Diffstat (limited to 'features/steps/shared')
-rw-r--r--features/steps/shared/project.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/features/steps/shared/project.rb b/features/steps/shared/project.rb
index 41f71ae29cb..b60ac5e3423 100644
--- a/features/steps/shared/project.rb
+++ b/features/steps/shared/project.rb
@@ -14,6 +14,13 @@ module SharedProject
@project.team << [@user, :master]
end
+ # Add another user to project "Shop"
+ step 'I add a user to project "Shop"' do
+ @project = Project.find_by(name: "Shop")
+ other_user = create(:user, name: 'Alpha')
+ @project.team << [other_user, :master]
+ end
+
# Create another specific project called "Forum"
step 'I own project "Forum"' do
@project = Project.find_by(name: "Forum")