Screencast RubyTapas: Testing Blocks Ruby
- Avdi Grimm
- 1733 views
Locked Content
A subscription is required for viewing this video. Enroll now to get full access to all Code School courses and content.
Enroll Now Sign inToday's episode answers the question: How do you test that a block passed to a method is executed as intended? We could raise an exception or output a warning, but Avdi shows us a better way using a probe variable along with descriptive symbols to test whether or not the expected yield has occured.
Avdi is the creator of RubyTapas, a twice-weekly screencast series covering a wide variety of intermediate to advanced Ruby concepts and techniques, as well as core Object-Oriented design principles.
Resources
Comments
Comments are now disabled.
You need to be an enrolled student in order to view this video and subscribe.
Enroll Now