Fix store officer and booth info spec

This commit is contained in:
Bertocq
2017-10-21 00:24:49 +02:00
committed by Javi Martín
parent 4e4057573d
commit 94c37eb588

View File

@@ -135,10 +135,10 @@ feature "Voters" do
voter1 = Poll::Voter.first
expect(voter1.booth_assignment).to eq(ba1)
expect(voter1.officer_assignment).not_to be_nil
expect(voter1.officer_assignment).to eq(ba1.officer_assignments.first)
voter2 = Poll::Voter.last
expect(voter2.booth_assignment).to eq(ba2)
expect(voter2.officer_assignment).not_to be_nil
expect(voter2.officer_assignment).to eq(ba2.officer_assignments.first)
end
end