Test-First Development for Rails

Preview

Download Free Preview

Purchase includes Quicktime (zip) download Purchase includes iPod download

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.)

Cheat Sheet

→ Download Free Test Assertions Cheat Sheet

Script

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

Skills

This screencast assumes that you have written at least one Rails application on your own.

Revision 2 (Notes) · Updated: Sep 25, 2008 · Length: 80 min · 101 MB

What People Are Saying

“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

Have a Coupon?

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 one!

Subscribe!

Save money and learn a lot, too! PeepCode Unlimited gives you access to everything we publish for a full year. A 10 Pack will save you $20 and a 5 Pack will save you $5.

Site licenses and team subscriptions are also available! Contact peepcode@topfunky.com with the number of developers you have and the number of credits you would like to buy and we will send you a personalized quote.

What People Are Saying About PeepCode

“PeepCode is awesome!” Tim O'Reilly, O'Reilly Media
“I suspect there are a lot of smart DF readers out there who know nothing about the Unix-y aspects of Mac OS X, would like to, but never found a good way to get started. This screencast is it.” John Gruber, Daring Fireball
“Mercurial is just what I was looking for. Happy to pay to support people making such high-quality and informative screencasts.” Jason Kottke
“Absolutely fantastic - I haven't seen a PeepCode screencast before and I'm super impressed with the level of graphics/audio...I just finished it and it really is a great intro. Well done.” David Kaneda, author of jQTouch
“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

More Reviews