Commit 4381084af341684240b1a671d368511afcf5774a
1 parent
b962bcd4
Exists in
master
and in
4 other branches
Trying to get rid of random dashboard/issues cucumber fail
Showing
1 changed file
with
4 additions
and
12 deletions
Show diff stats
features/step_definitions/dashboard_steps.rb
| ... | ... | @@ -91,26 +91,18 @@ Then /^I should see my merge requests$/ do |
| 91 | 91 | end |
| 92 | 92 | |
| 93 | 93 | Given /^I have assigned issues$/ do |
| 94 | - project1 = Factory :project, | |
| 95 | - :path => "project1", | |
| 96 | - :code => "gitlabhq_1" | |
| 97 | - | |
| 98 | - project2 = Factory :project, | |
| 99 | - :path => "project2", | |
| 100 | - :code => "gitlabhq_2" | |
| 101 | - | |
| 102 | - project1.add_access(@user, :read, :write) | |
| 103 | - project2.add_access(@user, :read, :write) | |
| 94 | + project = Factory :project | |
| 95 | + project.add_access(@user, :read, :write) | |
| 104 | 96 | |
| 105 | 97 | issue1 = Factory :issue, |
| 106 | 98 | :author => @user, |
| 107 | 99 | :assignee => @user, |
| 108 | - :project => project1 | |
| 100 | + :project => project | |
| 109 | 101 | |
| 110 | 102 | issue2 = Factory :issue, |
| 111 | 103 | :author => @user, |
| 112 | 104 | :assignee => @user, |
| 113 | - :project => project2 | |
| 105 | + :project => project | |
| 114 | 106 | end |
| 115 | 107 | |
| 116 | 108 | Given /^I have authored merge requests$/ do | ... | ... |