diff --git a/lib/tasks/test_api.rake b/lib/tasks/test_api.rake index 0e0ff35..71ebdbd 100644 --- a/lib/tasks/test_api.rake +++ b/lib/tasks/test_api.rake @@ -405,6 +405,8 @@ namespace :test_api do # want to ignore some tests for any question with votes before 2010-02-17 question_has_votes_before_2010_02_17 = question.votes.count(:conditions => ["created_at < ?", '2010-02-17']) > 0 + # reload question to make sure we have most recent data + question.reload question.choices.each do |choice| if choice.wins -- libgit2 0.21.2