Test-first development can improve your workflow, improve the quality of your software, and give you confidence.
If you have looked at the “test” directory sitting at the bottom of your Rails applications and have wondered what it’s there for, this is the screencast for you!
This screencast walks through the basics of writing a simple application with the principles of test-first and behavior-driven development. You’ll use the features already built into Rails and learn how to extend it for your own needs, too.
The download includes the actual code discussed in the screencast (recently updated for Rails 1.2.2). Rails 1.2.2 is used for the project but most of the content applies to any current version of Rails.
NOTE: Advanced or cutting edge topics such as rSpec and Test::Rails are not discussed in this screencast but will be covered in a future episode.
(Requires Quicktime 7 → Download.)
→ Download Free Test Assertions Cheat Sheet
| Time (approx) | Topic |
| 0-5 | Why Test? |
| 5-11 | Tools |
| 11-18 | Setup |
| 19-39 | Models and Unit Tests |
| 40-1:04 | Controllers and Functional Tests |
| 1:05-1:15 | Integration Tests |
| 1:15-1:19 | Tips |
This screencast assumes that you have written at least one Rails application on your own.
Revision 2 (Notes) · Updated: Sep 25, 2008 · Length: min · 101 MB
“I've never seen a screencast as well made as the PeepCode screencasts. They are easy to follow even if advanced topics are covered.” Christoph Budzinski, Developer
“A week or so ago I downloaded the PeepCode Screencast on Test First Development. It was the first really clear example on Test Driven Development I’d seen and it helped clear up a lot of questions I’d had about it.” Mark Carey on the Kognitive Jelly Blog
“The format works really well for tutorials as you can follow along by simple pausing every 30 seconds or so and typing in the examples as you can go...This really lets you follow along at your own pace. The other nice thing was that all of the code typed in actually worked.” Ed Gibbs, Software Developer
“These screencasts are amazing! The TDD one has a lot of tips which helped me to go deep in this interesting Test-First world! Before watching this I haven't realized how to write tests FIRST in Rails apps. Long live PeepCode!” Arthur Zapparoli
“PeepCode is awesome!” Tim O'Reilly, O'Reilly Media
“These things are fantastic and the price is a steal. I strongly urge you to support this effort and buy the episodes. What a terrific way to learn!” Scott Barron, Rails Core Committer
“Emacs screencast from PeepCode was great. A ton of information in 50 minutes, but good overview of all the features.” Joe Fiorini
“Your last screencast about Emacs is fantastic!” Oscar Del Ben, Developer and Entrepreneur
“The moment I saw the title I knew I had to buy it. I'm definitely going to try out the suggestions in the screencast; productivity is very important to me. Thank you for publishing this screencast and keep up with your excellent work on PeepCode!” Hongli Lai, Co-Founder, Phusion
Login or signup and enter the code on your account page. If it is still valid you will be able to browse the list of products and redeem an episode.