Commit 6f15c4a5 authored by marcheing's avatar marcheing

Add id field as sequence to factories

parent bca58fbf
FactoryGirl.define do
factory :video, class: Content do
sequence(:id, 1)
title 'Video Title'
zip_code '00000-000'
soundtrack 'soundtrack'
......
FactoryGirl.define do
factory :encoded_video, class: EncodedContent do
sequence(:id, 1)
output_id 1
state 'finished'
width 640
......
FactoryGirl.define do
factory :profile do
sequence(:id, 1)
first_name 'Media'
country 'BR'
city 'Sao Paulo'
......@@ -18,6 +19,7 @@ FactoryGirl.define do
end
factory :another_profile, class: Profile do
sequence(:id, 1)
first_name "Name"
country "BR"
city "Rio de Janeiro"
......
FactoryGirl.define do
factory :user do
sequence(:id, 1)
sequence :email do |n|
"email#{n}@email.com"
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