add user team factories
This commit is contained in:
parent
3a0d4865f6
commit
17e9207dff
9
spec/factories/user_team_project_relationships.rb
Normal file
9
spec/factories/user_team_project_relationships.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
factory :user_team_project_relationship do
|
||||
project_id 1
|
||||
user_team_id 1
|
||||
greatest_access 1
|
||||
end
|
||||
end
|
10
spec/factories/user_team_user_relationships.rb
Normal file
10
spec/factories/user_team_user_relationships.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
factory :user_team_user_relationship do
|
||||
user_id 1
|
||||
user_team_id 1
|
||||
group_admin false
|
||||
permission 1
|
||||
end
|
||||
end
|
9
spec/factories/user_teams.rb
Normal file
9
spec/factories/user_teams.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
factory :user_team do
|
||||
sequence(:name) { |n| "team#{n}" }
|
||||
path { name.downcase.gsub(/\s/, '_') }
|
||||
owner
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue