Commit
17e9207dff39374ae33574b19123d1a1320fff4c
add user team factories
| @@ -0,0 +1,9 @@ |
| @@ -0,0 +1,9 @@ |
| |
1
| +# Read about factories at https://github.com/thoughtbot/factory_girl |
| |
2
| + |
| |
3
| +FactoryGirl.define do |
| |
4
| + factory :user_team_project_relationship do |
| |
5
| + project_id 1 |
| |
6
| + user_team_id 1 |
| |
7
| + greatest_access 1 |
| |
8
| + end |
| |
9
| +end |
| @@ -0,0 +1,10 @@ |
| @@ -0,0 +1,10 @@ |
| |
1
| +# Read about factories at https://github.com/thoughtbot/factory_girl |
| |
2
| + |
| |
3
| +FactoryGirl.define do |
| |
4
| + factory :user_team_user_relationship do |
| |
5
| + user_id 1 |
| |
6
| + user_team_id 1 |
| |
7
| + group_admin false |
| |
8
| + permission 1 |
| |
9
| + end |
| |
10
| +end |
| @@ -0,0 +1,9 @@ |
| @@ -0,0 +1,9 @@ |
| |
1
| +# Read about factories at https://github.com/thoughtbot/factory_girl |
| |
2
| + |
| |
3
| +FactoryGirl.define do |
| |
4
| + factory :user_team do |
| |
5
| + sequence(:name) { |n| "team#{n}" } |
| |
6
| + path { name.downcase.gsub(/\s/, '_') } |
| |
7
| + owner |
| |
8
| + end |
| |
9
| +end |