Files
nairobi/spec
Javi Martín 4830b563ea Create only one poll for a poll voter
The factories were creating strange database relations:

* The voter belonged to a poll, to a booth and to an officer
* The booth belonged to a different poll
* The officer belonged to a different booth

The code uses an unusual syntax because the following code:

association :booth_assignment,
            factory: :poll_booth_assignment,
            poll: poll

Would generate the following error:

ActiveRecord::AssociationTypeMismatch: Poll(#46976420451940) expected,
got FactoryBot::Declaration::Implicit
2019-03-19 13:19:24 +01:00
..
2019-03-15 09:57:09 +01:00
2019-02-20 13:56:58 +01:00
2019-03-14 18:35:51 +01:00
2019-02-18 13:34:07 +01:00