Commit b2c3c535147f46744113584a2c112e5262a1e47b
1 parent
e461e6c0
Exists in
master
and in
1 other branch
Fix typo in test_api
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/tasks/test_api.rake
@@ -403,7 +403,7 @@ namespace :test_api do | @@ -403,7 +403,7 @@ namespace :test_api do | ||
403 | error_bool= true | 403 | error_bool= true |
404 | end | 404 | end |
405 | 405 | ||
406 | - if (choice.losses != question.votes.count(:conditions => {:loser_choice_id})) | 406 | + if (choice.losses != question.votes.count(:conditions => {:loser_choice_id => choice.id})) |
407 | error_message += "Error!: Cached choice wins != actual choice wins" | 407 | error_message += "Error!: Cached choice wins != actual choice wins" |
408 | error_bool= true | 408 | error_bool= true |
409 | end | 409 | end |