Commit 9bd7ab6b authored by marcheing's avatar marcheing

Add profile factory

parent b9e94ac6
FactoryGirl.define do
factory :profile do
first_name 'Media'
country 'BR'
city 'Sao Paulo'
responsible_document '918238910'
birthdate Time.zone.today
responsible_name 'Responsible'
gender 'Male'
last_name 'Choice User'
school 'Some School'
phone '912345678'
state 'Sao Paulo'
terms_of_service '1'
association :user, strategy: :build
zip_code '09898-098'
occupation 'Profession'
end
factory :another_profile, class: Profile do
first_name "Name"
country "BR"
city "Rio de Janeiro"
responsible_document "532221420"
birthdate Date.yesterday
responsible_name "Name"
gender "Female"
last_name "Last"
school "School"
phone "012246654"
state "Rio de Janeiro"
terms_of_service '1'
association :user, strategy: :build
zip_code '00000-098'
occupation 'Occupation'
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment