adds required date to recount factory

fixes recount spec
This commit is contained in:
Juanjo Bazán
2017-01-03 23:02:58 +01:00
parent 0953a536af
commit c2a61096aa

View File

@@ -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