diff options
author | Stan Hu <stanhu@gmail.com> | 2015-03-30 23:53:42 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-04-09 01:04:53 -0700 |
commit | 3d2c3878408bd27af64293a22eff6857ad9b38dd (patch) | |
tree | 13e35e9024d7998d1c164c8a288562b3465d013f /features/steps/shared/project.rb | |
parent | f3f856029bc5f966c5a7ee24cf7efefdd20e6019 (diff) | |
download | gitlab-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/project.rb')
-rw-r--r-- | features/steps/shared/project.rb | 7 |
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") |