summaryrefslogtreecommitdiff
path: root/features/step_definitions
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-08-28 22:57:16 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-08-28 22:57:16 -0700
commit8da05a4ff7cd9cd84e74bd8a017baf59135ee39d (patch)
tree5eda64c46cd5caf655f517877767267b88adcb1c /features/step_definitions
parentb03ee4666bc5dfa3c509768918cbc8a477d24efb (diff)
parent1dda08486b7751a677870486d4b576e6dd6071e7 (diff)
downloadgitlab-ce-8da05a4ff7cd9cd84e74bd8a017baf59135ee39d.tar.gz
Merge pull request #1323 from tsigo/factory_girl
FactoryGirl and spec cleanup
Diffstat (limited to 'features/step_definitions')
-rw-r--r--features/step_definitions/dashboard_steps.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/features/step_definitions/dashboard_steps.rb b/features/step_definitions/dashboard_steps.rb
index d910ec90d19..a4edd224dc0 100644
--- a/features/step_definitions/dashboard_steps.rb
+++ b/features/step_definitions/dashboard_steps.rb
@@ -106,13 +106,9 @@ Given /^I have assigned issues$/ do
end
Given /^I have authored merge requests$/ do
- project1 = Factory :project,
- :path => "gitlabhq_1",
- :code => "gitlabhq_1"
+ project1 = Factory :project
- project2 = Factory :project,
- :path => "gitlabhq_2",
- :code => "gitlabhq_2"
+ project2 = Factory :project
project1.add_access(@user, :read, :write)
project2.add_access(@user, :read, :write)