From 2d846835ee3493d39353f35f9ec57615a32285ba Mon Sep 17 00:00:00 2001 From: Luke Baker Date: Fri, 17 Jun 2011 10:09:05 -0400 Subject: [PATCH] skip appearance test for certain questions --- lib/tasks/test_api.rake | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/tasks/test_api.rake b/lib/tasks/test_api.rake index 0d7b8ec..2590183 100644 --- a/lib/tasks/test_api.rake +++ b/lib/tasks/test_api.rake @@ -459,9 +459,11 @@ namespace :test_api do print "Either 0 or 100 This score is wrong! #{choice.id} , Question ID: #{question.id}, #{cached_score}, #{generated_score}, updated: #{choice.updated_at}\n" end - message, error_occurred = verify_choice_appearances_and_votes(choice) - if error_occurred - error_message += message + unless question_has_votes_before_2010_02_17 + message, error_occurred = verify_choice_appearances_and_votes(choice) + if error_occurred + error_message += message + end end -- libgit2 0.21.2