Module: TestCommands
- Included in:
- Inari::Commands
- Defined in:
- lib/inari/commands/test.rb
Instance Method Summary collapse
Instance Method Details
#run_test(probability) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/inari/commands/test.rb', line 2 def run_test(probability) if rand(100) > probability add_response('Test', Response.new('200')) else add_response('Test', Response.new('404'), true) end end |