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,26 +91,18 @@ Then /^I should see my merge requests$/ do | ||
| 91 | end | 91 | end |
| 92 | 92 | ||
| 93 | Given /^I have assigned issues$/ do | 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 | issue1 = Factory :issue, | 97 | issue1 = Factory :issue, |
| 106 | :author => @user, | 98 | :author => @user, |
| 107 | :assignee => @user, | 99 | :assignee => @user, |
| 108 | - :project => project1 | 100 | + :project => project |
| 109 | 101 | ||
| 110 | issue2 = Factory :issue, | 102 | issue2 = Factory :issue, |
| 111 | :author => @user, | 103 | :author => @user, |
| 112 | :assignee => @user, | 104 | :assignee => @user, |
| 113 | - :project => project2 | 105 | + :project => project |
| 114 | end | 106 | end |
| 115 | 107 | ||
| 116 | Given /^I have authored merge requests$/ do | 108 | Given /^I have authored merge requests$/ do |