Ruby Hoedown 2007: Charity Workshop: Ruby and Rails Testing Techniques
The Ruby language is growing exponentially, partially because it offers more flexibility than other more common languages. All of that flexibility comes at a price: Ruby has no compiler to catch certain kinds of basic mistakes. Automated testing makes those disadvantages obsolete. Now, testing is firmly ingrained in the Ruby culture.
In this session, we'll cover Test::Unit, the standard Ruby distribution that has shipped with Ruby for years. We'll also catch the built-in testing frameworks for Ruby on Rails, but we'll also go beyond that well-travelled ground to show you how the best Rails shops in the world test. You'll see the in-favor frameworks for code coverage (RCov), mocking (FlexMock), behavior driven tests (RSpec), and even point-and-click integration tests with Selenium.