adds required date to recount factory
fixes recount spec
This commit is contained in:
@@ -321,6 +321,7 @@ FactoryGirl.define do
|
|||||||
association :officer_assignment, factory: :poll_officer_assignment
|
association :officer_assignment, factory: :poll_officer_assignment
|
||||||
association :booth_assignment, factory: :poll_booth_assignment
|
association :booth_assignment, factory: :poll_booth_assignment
|
||||||
count (1..100).to_a.sample
|
count (1..100).to_a.sample
|
||||||
|
date (1.month.ago.to_datetime..1.month.from_now.to_datetime).to_a.sample
|
||||||
end
|
end
|
||||||
|
|
||||||
factory :poll_voter, class: 'Poll::Voter' do
|
factory :poll_voter, class: 'Poll::Voter' do
|
||||||
|
|||||||
Reference in New Issue
Block a user