Commit 44e25767ad84cbb8b11a77b8035b27377fe4131f
1 parent
b73eab79
Exists in
master
and in
1 other branch
Fixing typo in test_api
Showing
1 changed file
with
9 additions
and
9 deletions
Show diff stats
lib/tasks/test_api.rake
| @@ -395,18 +395,18 @@ namespace :test_api do | @@ -395,18 +395,18 @@ namespace :test_api do | ||
| 395 | total_scores_lte_fifty +=1 | 395 | total_scores_lte_fifty +=1 |
| 396 | end | 396 | end |
| 397 | 397 | ||
| 398 | - | ||
| 399 | - end | ||
| 400 | - | ||
| 401 | - if (choice.wins != choice.votes.count) | ||
| 402 | - error_message += "Error!: Cached choice wins != actual choice wins" | 398 | + if (choice.wins != choice.votes.count) |
| 399 | + error_message += "Error!: Cached choice wins != actual choice wins for choice #{choice.id}\n" | ||
| 403 | error_bool= true | 400 | error_bool= true |
| 404 | - end | 401 | + end |
| 405 | 402 | ||
| 406 | - if (choice.losses != question.votes.count(:conditions => {:loser_choice_id => choice.id})) | ||
| 407 | - error_message += "Error!: Cached choice wins != actual choice wins" | 403 | + if (choice.losses != question.votes.count(:conditions => {:loser_choice_id => choice.id})) |
| 404 | + error_message += "Error!: Cached choice wins != actual choice wins for choice #{choice.id}\n" | ||
| 408 | error_bool= true | 405 | error_bool= true |
| 409 | - end | 406 | + end |
| 407 | + | ||
| 408 | + end | ||
| 409 | + | ||
| 410 | 410 | ||
| 411 | if (2*total_wins != total_votes) | 411 | if (2*total_wins != total_votes) |
| 412 | error_message += "Error 1: 2 x Total Wins != Total votes" | 412 | error_message += "Error 1: 2 x Total Wins != Total votes" |