Commit ca3dbbbd47fe0e1751f594f4abee7ff2146f6797

Authored by Luke Baker
1 parent cb57414e

fix check comparing appearances with votes/skip

only warn if answered appearances is less than number of votes and skips
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/tasks/test_api.rake
... ... @@ -659,7 +659,7 @@ namespace :test_api do
659 659 total_votes = Vote.count
660 660 total_skips = Skip.count
661 661  
662   - if (total_answered_appearances != total_votes+ total_skips)
  662 + if (total_answered_appearances < total_votes+ total_skips)
663 663 difference = (total_votes+ total_skips) - total_answered_appearances
664 664 error_message += "Error! There are #{difference} votes or skips without associated appearance objects."
665 665 end
... ...