From b55dc73d9ef0fb309fdd8eada894521b88430d5b Mon Sep 17 00:00:00 2001 From: Luke Baker Date: Fri, 4 Oct 2013 09:12:27 -0400 Subject: [PATCH] add question_id to api test error message --- lib/tasks/test_api.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/test_api.rake b/lib/tasks/test_api.rake index 999f202..ea84a3b 100644 --- a/lib/tasks/test_api.rake +++ b/lib/tasks/test_api.rake @@ -59,7 +59,7 @@ namespace :test_api do delta = 0.001 if (cached_score - generated_score).abs >= delta - error_message = "Error! The cached_score is not equal to the calculated score for choice #{choice.id}, cached: #{cached_score}, computed: #{generated_score}\n" + error_message = "Error! The cached_score is not equal to the calculated score for choice #{choice.id} for question #{choice.question_id}, cached: #{cached_score}, computed: #{generated_score}\n" end return error_message.blank? ? [success_message, false] : [error_message, true] -- libgit2 0.21.2