add user team factories

This commit is contained in:
Andrey Kumanyaev 2013-01-19 21:53:03 +04:00 committed by Dmitriy Zaporozhets
parent 3a0d4865f6
commit 17e9207dff
3 changed files with 28 additions and 0 deletions

View 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

View 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

View 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