Last active
May 16, 2016 03:48
-
-
Save ardeearam/2e91ccd09cf75e54f67c81c3a141ea15 to your computer and use it in GitHub Desktop.
test_loop.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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