Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyCode
- def speak
- "hello"
- end
- def do_something!
- call_external_service
- call_another_service("some parameter")
- end
- def call_another_service(args)
- sleep(30)
- end
- # when I unit test this, I will stub it out so my
- # test is not dependent on external timeouts
- def call_external_service
- sleep(30)
- end
- end
Add Comment
Please, Sign In to add comment