Skip to content

Instantly share code, notes, and snippets.

@ardeearam
Last active May 16, 2016 03:48
Show Gist options
  • Save ardeearam/2e91ccd09cf75e54f67c81c3a141ea15 to your computer and use it in GitHub Desktop.
Save ardeearam/2e91ccd09cf75e54f67c81c3a141ea15 to your computer and use it in GitHub Desktop.
test_loop.rb
1.upto 100 do
sample_question = Question.where(description: "8000").sample
puts sample_question.id
entity_outcome = sample_question.entity_outcome
if entity_outcome.nil?
puts "Error!"
break
elsif entity_outcome.result != "Abnormal" or entity_outcome.risk_point != 21
puts "Error!"
break
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment