Commit 301587a404e0d1f35f73147748cbeec87bd04e7d
1 parent
3d681974
Exists in
master
and in
1 other branch
update column tests for CSV files
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
spec/models/question_spec.rb
| ... | ... | @@ -568,7 +568,8 @@ describe Question do |
| 568 | 568 | csv = @aoi_question.export('non_votes') |
| 569 | 569 | |
| 570 | 570 | rows = CSVBridge.parse(csv) |
| 571 | - rows.first.should include("Record ID") | |
| 571 | + rows.first.should include("Skip ID") | |
| 572 | + rows.first.should include("Appearance ID") | |
| 572 | 573 | rows.first.should include("Record Type") |
| 573 | 574 | rows.first.should_not include("Idea ID") |
| 574 | 575 | # ensure we have more than just the header row |
| ... | ... | @@ -666,6 +667,7 @@ describe Question do |
| 666 | 667 | # |
| 667 | 668 | rows = CSVBridge.parse(csv) |
| 668 | 669 | rows.first.should include("Vote ID") |
| 670 | + rows.first.should include("Appearance ID") | |
| 669 | 671 | rows.first.should_not include("Idea ID") |
| 670 | 672 | |
| 671 | 673 | rows.shift | ... | ... |