|
|
|
@ -579,6 +579,10 @@ RSpec.describe SurveyItemValues, type: :model do
|
|
|
|
row = { "Raw ELL" => "EL - Early Child. or PK" }
|
|
|
|
row = { "Raw ELL" => "EL - Early Child. or PK" }
|
|
|
|
values = SurveyItemValues.new(row:, headers:, survey_items:, schools:)
|
|
|
|
values = SurveyItemValues.new(row:, headers:, survey_items:, schools:)
|
|
|
|
expect(values.ell).to eq "ELL"
|
|
|
|
expect(values.ell).to eq "ELL"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
row = { "Raw ELL" => "LEP Not 1st Year" }
|
|
|
|
|
|
|
|
values = SurveyItemValues.new(row:, headers:, survey_items:, schools:)
|
|
|
|
|
|
|
|
expect(values.ell).to eq "ELL"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
it 'translates "Does not Apply" into "Not ELL"' do
|
|
|
|
it 'translates "Does not Apply" into "Not ELL"' do
|
|
|
|
@ -680,6 +684,13 @@ RSpec.describe SurveyItemValues, type: :model do
|
|
|
|
expect(values.sped).to eq "Not Special Education"
|
|
|
|
expect(values.sped).to eq "Not Special Education"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it 'translates "not sped" into "Not Special Education' do
|
|
|
|
|
|
|
|
headers = ["Raw SpEd"]
|
|
|
|
|
|
|
|
row = { "Raw SpEd" => "Not SPED" }
|
|
|
|
|
|
|
|
values = SurveyItemValues.new(row:, headers:, survey_items:, schools:, academic_years:)
|
|
|
|
|
|
|
|
expect(values.sped).to eq "Not Special Education"
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
it 'translates NA into "Unknown"' do
|
|
|
|
it 'translates NA into "Unknown"' do
|
|
|
|
headers = ["Raw SpEd"]
|
|
|
|
headers = ["Raw SpEd"]
|
|
|
|
row = { "Raw SpEd" => "NA" }
|
|
|
|
row = { "Raw SpEd" => "NA" }
|
|
|
|
|