diff options
Diffstat (limited to 'spec/factories.rb')
-rw-r--r-- | spec/factories.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/factories.rb b/spec/factories.rb index 457c08ba87d..ea055d1bcd0 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -3,6 +3,7 @@ require File.join(Rails.root, 'spec', 'factory') Factory.add(:project, Project) do |obj| obj.name = Faker::Internet.user_name obj.path = 'legit' + obj.owner = Factory(:user) obj.code = 'LGT' end @@ -10,6 +11,7 @@ Factory.add(:public_project, Project) do |obj| obj.name = Faker::Internet.user_name obj.path = 'legit' obj.private_flag = false + obj.owner = Factory(:user) obj.code = 'LGT' end |