Commit 301587a404e0d1f35f73147748cbeec87bd04e7d

Authored by Luke Baker
1 parent 3d681974

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,7 +568,8 @@ describe Question do
568 csv = @aoi_question.export('non_votes') 568 csv = @aoi_question.export('non_votes')
569 569
570 rows = CSVBridge.parse(csv) 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 rows.first.should include("Record Type") 573 rows.first.should include("Record Type")
573 rows.first.should_not include("Idea ID") 574 rows.first.should_not include("Idea ID")
574 # ensure we have more than just the header row 575 # ensure we have more than just the header row
@@ -666,6 +667,7 @@ describe Question do @@ -666,6 +667,7 @@ describe Question do
666 # 667 #
667 rows = CSVBridge.parse(csv) 668 rows = CSVBridge.parse(csv)
668 rows.first.should include("Vote ID") 669 rows.first.should include("Vote ID")
  670 + rows.first.should include("Appearance ID")
669 rows.first.should_not include("Idea ID") 671 rows.first.should_not include("Idea ID")
670 672
671 rows.shift 673 rows.shift