From 94c37eb588795bf4952006a83b2da0b9e0173471 Mon Sep 17 00:00:00 2001 From: Bertocq Date: Sat, 21 Oct 2017 00:24:49 +0200 Subject: [PATCH] Fix store officer and booth info spec --- spec/features/officing/voters_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/officing/voters_spec.rb b/spec/features/officing/voters_spec.rb index fabea072a..2f21234e7 100644 --- a/spec/features/officing/voters_spec.rb +++ b/spec/features/officing/voters_spec.rb @@ -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