mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
chore: rename counts_by_grade to enrollment_by_grade for clarity
This commit is contained in:
parent
a75373f6f2
commit
ea079e927b
8 changed files with 14 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue