includes :invalid option in officing_residence factory

This commit is contained in:
kikito
2017-02-08 14:55:15 +01:00
parent 3b2f2b0fd7
commit 871846c070

View File

@@ -478,9 +478,14 @@ FactoryGirl.define do
factory :officing_residence, class: 'Officing::Residence' do
user
association :officer, factory: :poll_officer
document_number
document_type "1"
year_of_birth "1980"
trait :invalid do
year_of_birth Time.current.year
end
end
factory :organization do