@ -153,7 +153,7 @@ RSpec.describe Cleaner do
survey_items = SurveyItem . where ( survey_item_id : standard_survey_items )
survey_items = SurveyItem . where ( survey_item_id : standard_survey_items )
data = [ SurveyItemValues . new ( row : { " Recorded Date " = > recorded_date , " Dese ID " = > " 1_740_505 " } , headers : standard_survey_items , survey_items : ,
data = [ SurveyItemValues . new ( row : { " Recorded Date " = > recorded_date , " Dese ID " = > " 1_740_505 " } , headers : standard_survey_items , survey_items : ,
schools : School . school_ hash ) ]
schools : School . school_ by_dese_id ) ]
filename = Cleaner . new ( input_filepath : , output_filepath : , log_filepath : ) . filename (
filename = Cleaner . new ( input_filepath : , output_filepath : , log_filepath : ) . filename (
headers : standard_survey_items , data : , filepath : nil
headers : standard_survey_items , data : , filepath : nil
)
)
@ -165,7 +165,7 @@ RSpec.describe Cleaner do
survey_items = SurveyItem . where ( survey_item_id : short_form_survey_items )
survey_items = SurveyItem . where ( survey_item_id : short_form_survey_items )
data = [ SurveyItemValues . new ( row : { " Recorded Date " = > recorded_date , " Dese ID " = > " 1_740_505 " } , headers : short_form_survey_items , survey_items : ,
data = [ SurveyItemValues . new ( row : { " Recorded Date " = > recorded_date , " Dese ID " = > " 1_740_505 " } , headers : short_form_survey_items , survey_items : ,
schools : School . school_ hash ) ]
schools : School . school_ by_dese_id ) ]
filename = Cleaner . new ( input_filepath : , output_filepath : , log_filepath : ) . filename (
filename = Cleaner . new ( input_filepath : , output_filepath : , log_filepath : ) . filename (
headers : short_form_survey_items , data : , filepath : nil
headers : short_form_survey_items , data : , filepath : nil
)
)
@ -178,7 +178,7 @@ RSpec.describe Cleaner do
survey_items = SurveyItem . where ( survey_item_id : early_education_survey_items )
survey_items = SurveyItem . where ( survey_item_id : early_education_survey_items )
data = [ SurveyItemValues . new ( row : { " Recorded Date " = > recorded_date , " Dese ID " = > " 1_740_505 " } , headers : early_education_survey_items , survey_items : ,
data = [ SurveyItemValues . new ( row : { " Recorded Date " = > recorded_date , " Dese ID " = > " 1_740_505 " } , headers : early_education_survey_items , survey_items : ,
schools : School . school_ hash ) ]
schools : School . school_ by_dese_id ) ]
filename = Cleaner . new ( input_filepath : , output_filepath : , log_filepath : ) . filename (
filename = Cleaner . new ( input_filepath : , output_filepath : , log_filepath : ) . filename (
headers : early_education_survey_items , data : , filepath : nil
headers : early_education_survey_items , data : , filepath : nil
)
)
@ -190,7 +190,7 @@ RSpec.describe Cleaner do
survey_items = SurveyItem . where ( survey_item_id : teacher_survey_items )
survey_items = SurveyItem . where ( survey_item_id : teacher_survey_items )
data = [ SurveyItemValues . new ( row : { " Recorded Date " = > recorded_date , " Dese ID " = > " 1_740_505 " } , headers : teacher_survey_items , survey_items : ,
data = [ SurveyItemValues . new ( row : { " Recorded Date " = > recorded_date , " Dese ID " = > " 1_740_505 " } , headers : teacher_survey_items , survey_items : ,
schools : School . school_ hash ) ]
schools : School . school_ by_dese_id ) ]
filename = Cleaner . new ( input_filepath : , output_filepath : , log_filepath : ) . filename (
filename = Cleaner . new ( input_filepath : , output_filepath : , log_filepath : ) . filename (
headers : teacher_survey_items , data : , filepath : nil
headers : teacher_survey_items , data : , filepath : nil
)
)
@ -202,9 +202,9 @@ RSpec.describe Cleaner do
it " adds all districts to the filename " do
it " adds all districts to the filename " do
survey_items = SurveyItem . where ( survey_item_id : teacher_survey_items )
survey_items = SurveyItem . where ( survey_item_id : teacher_survey_items )
data = [ SurveyItemValues . new ( row : { " Recorded Date " = > recorded_date , " Dese ID " = > " 1_740_505 " } , headers : teacher_survey_items , survey_items : , schools : School . school_ hash ) ,
data = [ SurveyItemValues . new ( row : { " Recorded Date " = > recorded_date , " Dese ID " = > " 1_740_505 " } , headers : teacher_survey_items , survey_items : , schools : School . school_ by_dese_id ) ,
SurveyItemValues . new ( row : { " Recorded Date " = > recorded_date , " Dese ID " = > " 222_222 " } ,
SurveyItemValues . new ( row : { " Recorded Date " = > recorded_date , " Dese ID " = > " 222_222 " } ,
headers : teacher_survey_items , survey_items : , schools : School . school_ hash ) ]
headers : teacher_survey_items , survey_items : , schools : School . school_ by_dese_id ) ]
filename = Cleaner . new ( input_filepath : , output_filepath : , log_filepath : ) . filename (
filename = Cleaner . new ( input_filepath : , output_filepath : , log_filepath : ) . filename (
headers : teacher_survey_items , data : , filepath : nil
headers : teacher_survey_items , data : , filepath : nil
)
)
@ -217,7 +217,7 @@ RSpec.describe Cleaner do
survey_items = SurveyItem . where ( survey_item_id : early_education_survey_items )
survey_items = SurveyItem . where ( survey_item_id : early_education_survey_items )
data = [ SurveyItemValues . new ( row : { " Recorded Date " = > recorded_date , " Dese ID " = > " 1_740_505 " } , headers : early_education_survey_items , survey_items : ,
data = [ SurveyItemValues . new ( row : { " Recorded Date " = > recorded_date , " Dese ID " = > " 1_740_505 " } , headers : early_education_survey_items , survey_items : ,
schools : School . school_ hash ) ]
schools : School . school_ by_dese_id ) ]
filename = Cleaner . new ( input_filepath : , output_filepath : , log_filepath : ) . filename (
filename = Cleaner . new ( input_filepath : , output_filepath : , log_filepath : ) . filename (
headers : early_education_survey_items , data : , filepath : " /data/survey_responses/maynard early ed_ part a.2022-23.csv "
headers : early_education_survey_items , data : , filepath : " /data/survey_responses/maynard early ed_ part a.2022-23.csv "
)
)