File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ class Report
1212
1313 attribute :status , Symbol , default : proc { :pending }
1414
15- attribute :missing_columns , Array [ Symbol ] , default : proc { [ ] }
16- attribute :extra_columns , Array [ Symbol ] , default : proc { [ ] }
15+ attribute :missing_columns , Array [ String ] , default : proc { [ ] }
16+ attribute :extra_columns , Array [ String ] , default : proc { [ ] }
1717
1818 attribute :parser_error , String
1919
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ class ImportUserCSVByFirstName
224224
225225 expect ( report ) . to_not be_success
226226 expect ( report . status ) . to eq ( :invalid_header )
227- expect ( report . missing_columns ) . to eq ( [ : email] )
227+ expect ( report . missing_columns ) . to eq ( [ " email" ] )
228228 expect ( report . message ) . to eq ( "The following columns are required: email" )
229229 end
230230 end
@@ -248,6 +248,9 @@ class ImportUserCSVByFirstName
248248 import = ImportUserCSV . new ( content : csv_content )
249249
250250 expect ( import . header . extra_columns ) . to eq ( [ "age" ] )
251+
252+ report = import . run!
253+ expect ( report . extra_columns ) . to eq ( [ "age" ] )
251254 end
252255 end
253256
You can’t perform that action at this time.
0 commit comments