Replace FinalResult with TotalResult at admin BoothAssignment show

This commit is contained in:
Bertocq
2017-09-18 20:49:34 +02:00
parent 8cae97d98d
commit f27fcc7f99
7 changed files with 12 additions and 19 deletions

View File

@@ -97,11 +97,11 @@ feature 'Admin booths assignments' do
officer_assignment_2 = create(:poll_officer_assignment, booth_assignment: booth_assignment, date: poll.ends_at)
final_officer_assignment = create(:poll_officer_assignment, :final, booth_assignment: booth_assignment, date: poll.ends_at)
final_recount = create(:poll_final_recount,
total_recount = create(:poll_total_result,
booth_assignment: booth_assignment,
officer_assignment: final_officer_assignment,
date: final_officer_assignment.date,
count: 5678)
amount: 5678)
booth_assignment_2 = create(:poll_booth_assignment, poll: poll)
@@ -112,8 +112,8 @@ feature 'Admin booths assignments' do
click_link 'Recounts'
within('#recounts_list') do
within("#recounting_#{final_recount.date.strftime('%Y%m%d')}") do
expect(page).to have_content final_recount.count
within("#recounting_#{total_recount.date.strftime('%Y%m%d')}") do
expect(page).to have_content total_recount.amount
end
end
end