diff options
author | randx <dmitriy.zaporozhets@gmail.com> | 2012-08-24 11:48:30 +0300 |
---|---|---|
committer | randx <dmitriy.zaporozhets@gmail.com> | 2012-08-24 11:48:30 +0300 |
commit | 4381084af341684240b1a671d368511afcf5774a (patch) | |
tree | 27831ac7fdf28d9f287c913a5ff83a4a13e41a2f | |
parent | b962bcd4a7fbe017430f4f0ea84074088fc8c8b1 (diff) | |
download | gitlab-ce-4381084af341684240b1a671d368511afcf5774a.tar.gz |
Trying to get rid of random dashboard/issues cucumber fail
-rw-r--r-- | features/step_definitions/dashboard_steps.rb | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/features/step_definitions/dashboard_steps.rb b/features/step_definitions/dashboard_steps.rb index 90c3a69cfb8..1eec7619201 100644 --- a/features/step_definitions/dashboard_steps.rb +++ b/features/step_definitions/dashboard_steps.rb @@ -91,26 +91,18 @@ Then /^I should see my merge requests$/ do end Given /^I have assigned issues$/ do - project1 = Factory :project, - :path => "project1", - :code => "gitlabhq_1" - - project2 = Factory :project, - :path => "project2", - :code => "gitlabhq_2" - - project1.add_access(@user, :read, :write) - project2.add_access(@user, :read, :write) + project = Factory :project + project.add_access(@user, :read, :write) issue1 = Factory :issue, :author => @user, :assignee => @user, - :project => project1 + :project => project issue2 = Factory :issue, :author => @user, :assignee => @user, - :project => project2 + :project => project end Given /^I have authored merge requests$/ do |