mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
chore: Make sure 'hispanic' column only gets applied when using SIS race information
This commit is contained in:
parent
f28713d1fe
commit
6a24d4fa23
2 changed files with 13 additions and 7 deletions
|
|
@ -415,8 +415,9 @@ RSpec.describe SurveyItemValues, type: :model do
|
|||
values = SurveyItemValues.new(row:, headers:, genders:, survey_items:, schools:)
|
||||
expect(values.races.map { |race| race&.qualtrics_code }).to eq [5, 2, 3, 100]
|
||||
|
||||
row = { "Race" => "Caucasian and Asian and African American", "HispanicLatino" => "true" }
|
||||
row = { "Race- SIS" => "Caucasian and Asian and African American", "HispanicLatino" => "true" }
|
||||
headers.push("HispanicLatino")
|
||||
headers.push("Race- SIS")
|
||||
values = SurveyItemValues.new(row:, headers:, genders:, survey_items:, schools:)
|
||||
expect(values.races.map { |race| race&.qualtrics_code }).to eq [5, 2, 3, 4, 100]
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue