diff options
author | Andrey Kumanyaev <me@zzet.org> | 2013-01-23 20:43:23 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-24 22:31:48 +0200 |
commit | eb99feb4a7e01c4e83203ec014c082205b77ad02 (patch) | |
tree | 0f208f97fa314b991ab676be76764e53deef2f9b /spec/factories | |
parent | a5ce8696a6aa5a3a588fc618d8c959ce6c687310 (diff) | |
download | gitlab-ce-eb99feb4a7e01c4e83203ec014c082205b77ad02.tar.gz |
simple refactoring
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/user_team_project_relationships.rb | 6 | ||||
-rw-r--r-- | spec/factories/user_team_user_relationships.rb | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/spec/factories/user_team_project_relationships.rb b/spec/factories/user_team_project_relationships.rb index fa0f26e7455..93c7b57d0fa 100644 --- a/spec/factories/user_team_project_relationships.rb +++ b/spec/factories/user_team_project_relationships.rb @@ -2,8 +2,8 @@ FactoryGirl.define do factory :user_team_project_relationship do - project_id 1 - user_team_id 1 - greatest_access 1 + project + user_team + greatest_access { UsersProject::MASTER } end end diff --git a/spec/factories/user_team_user_relationships.rb b/spec/factories/user_team_user_relationships.rb index 9b655e00686..55179f9a45b 100644 --- a/spec/factories/user_team_user_relationships.rb +++ b/spec/factories/user_team_user_relationships.rb @@ -2,9 +2,9 @@ FactoryGirl.define do factory :user_team_user_relationship do - user_id 1 - user_team_id 1 + user + user_team group_admin false - permission 1 + permission { UsersProject::MASTER } end end |