singularize respondents

pull/1/head
rebuilt 3 years ago
parent 7915a1bc7c
commit 20d4f966e7

@ -43,15 +43,15 @@ describe 'District Admin', js: true do
# let(:username) { 'winchester' } # let(:username) { 'winchester' }
# let(:password) { 'winchester!' } # let(:password) { 'winchester!' }
let(:respondents) do let(:respondents) do
respondents = Respondent.where(school:, academic_year: ay_2021_22).first respondent = create(:respondent, school:, academic_year: ay_2021_22)
respondents.total_students = 8 respondent.total_students = 8
respondents.total_teachers = 8 respondent.total_teachers = 8
respondents.save respondent.save
respondents = Respondent.where(school:, academic_year: ay_2019_20).first respondent = create(:respondent, school:, academic_year: ay_2019_20)
respondents.total_students = 8 respondent.total_students = 8
respondents.total_teachers = 8 respondent.total_teachers = 8
respondents.save respondent.save
end end
before :each do before :each do

Loading…
Cancel
Save