chore: rename counts_by_grade to enrollment_by_grade for clarity

This commit is contained in:
Nelson Jovel 2023-12-18 15:01:33 -08:00
parent a75373f6f2
commit ea079e927b
8 changed files with 14 additions and 14 deletions

View file

@ -8,9 +8,9 @@ RSpec.describe Respondent, type: :model do
context 'when the student respondents include one or more counts for the number of respondents' do
it 'returns a hash with only the grades that have a non-zero count of students' do
expect(single_grade_of_respondents.one).to eq(10)
expect(single_grade_of_respondents.counts_by_grade).to eq({ 1 => 10 })
expect(two_grades_of_respondents.counts_by_grade).to eq({ -1 => 10, 0 => 5 })
expect(three_grades_of_respondents.counts_by_grade).to eq({ 1 => 10, 2 => 5, 12 => 6 })
expect(single_grade_of_respondents.enrollment_by_grade).to eq({ 1 => 10 })
expect(two_grades_of_respondents.enrollment_by_grade).to eq({ -1 => 10, 0 => 5 })
expect(three_grades_of_respondents.enrollment_by_grade).to eq({ 1 => 10, 2 => 5, 12 => 6 })
end
end
end