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
12
12
13
13
attribute :status , Symbol , default : proc { :pending }
14
14
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 { [ ] }
17
17
18
18
attribute :parser_error , String
19
19
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ class ImportUserCSVByFirstName
224
224
225
225
expect ( report ) . to_not be_success
226
226
expect ( report . status ) . to eq ( :invalid_header )
227
- expect ( report . missing_columns ) . to eq ( [ : email] )
227
+ expect ( report . missing_columns ) . to eq ( [ " email" ] )
228
228
expect ( report . message ) . to eq ( "The following columns are required: email" )
229
229
end
230
230
end
@@ -248,6 +248,9 @@ class ImportUserCSVByFirstName
248
248
import = ImportUserCSV . new ( content : csv_content )
249
249
250
250
expect ( import . header . extra_columns ) . to eq ( [ "age" ] )
251
+
252
+ report = import . run!
253
+ expect ( report . extra_columns ) . to eq ( [ "age" ] )
251
254
end
252
255
end
253
256
You can’t perform that action at this time.
0 commit comments