Commit b55dc73d9ef0fb309fdd8eada894521b88430d5b
1 parent
b384c696
Exists in
master
and in
1 other branch
add question_id to api test error message
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/tasks/test_api.rake
... | ... | @@ -59,7 +59,7 @@ namespace :test_api do |
59 | 59 | delta = 0.001 |
60 | 60 | |
61 | 61 | if (cached_score - generated_score).abs >= delta |
62 | - error_message = "Error! The cached_score is not equal to the calculated score for choice #{choice.id}, cached: #{cached_score}, computed: #{generated_score}\n" | |
62 | + 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" | |
63 | 63 | |
64 | 64 | end |
65 | 65 | return error_message.blank? ? [success_message, false] : [error_message, true] | ... | ... |