September 2014
Intermediate to advanced
240 pages
7h 2m
English
Testing is an important part of software development, especially with dynamic languages like Ruby. Ensuring that your code works as specified is one of the most critical parts of building a successful product. Projects that skip testing often collapse under the uncertainty that small changes might introduce unwanted and unanticipated side effects.
Ruby comes with a testing framework in its standard library, and there are many testing libraries available as RubyGems. This chapter will show you how to use these tools to write effective tests. While testing doesn’t offer proof that your code is free of bugs, it does increase your confidence that you’ve found many of them before your customers do.