From 4381084af341684240b1a671d368511afcf5774a Mon Sep 17 00:00:00 2001 From: randx Date: Fri, 24 Aug 2012 11:48:30 +0300 Subject: [PATCH] Trying to get rid of random dashboard/issues cucumber fail --- features/step_definitions/dashboard_steps.rb | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/features/step_definitions/dashboard_steps.rb b/features/step_definitions/dashboard_steps.rb index 90c3a69c..1eec7619 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