@@ -405,7 +405,7 @@ def check_task_completion_csv unit, col_count = nil
405405 CSV . parse ( csv_str ,
406406 headers : true ,
407407 return_headers : false ,
408- header_converters : [ -> ( body ) { body &.encode ( 'UTF-8' , 'binary' , invalid : :replace , undef : :replace , replace : '' ) . downcase } ] ,
408+ header_converters : [ -> ( body ) { body &.encode ( 'UTF-8' , 'binary' , invalid : :replace , undef : :replace , replace : '' ) & .downcase } ] ,
409409 converters : [ -> ( body ) { body &.encode ( 'UTF-8' , 'binary' , invalid : :replace , undef : :replace , replace : '' ) } ] ) . each do |entry |
410410
411411 assert_equal ( col_count , entry . length , entry . inspect ) unless col_count . nil?
@@ -493,7 +493,7 @@ def test_export_users
493493 rows = 0
494494 CSV . parse ( csv_str ,
495495 headers : true , return_headers : false ,
496- header_converters : [ -> ( body ) { body &.encode ( 'UTF-8' , 'binary' , invalid : :replace , undef : :replace , replace : '' ) . downcase } ] ,
496+ header_converters : [ -> ( body ) { body &.encode ( 'UTF-8' , 'binary' , invalid : :replace , undef : :replace , replace : '' ) & .downcase } ] ,
497497 converters : [ -> ( body ) { body &.encode ( 'UTF-8' , 'binary' , invalid : :replace , undef : :replace , replace : '' ) } ] ) . each do |entry |
498498 assert_json_limit_keys_to_exactly %w[ unit_code campus username student_id preferred_name first_name last_name email tutorial ] , entry . to_hash
499499 assert_equal 9 , entry . count , entry
0 commit comments