PeepCode

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 (Notes) · Created: Dec 26, 2006 · Length: 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
Rails101

Free Samples

What People Are Saying About PeepCode

“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
“[The] git PeepCode book is awesome. Congrats on a job very well done. This should be required reading for all git users.” Jamis Buck, Rails Core Alumnus
“It was refreshing to read about git from the bottom up, and not compared to SVN. I was at the stage where I could do most of the basic tasks I used to do in SVN, but lacked a fundamental understanding of how it was working under the hood...Understanding all those concepts really helped me grok why the higher level commands and workflows work the way they do, and how to avoid some of the pitfalls.” James, in blog comment
“Even if you are not planning to write a Rails plugin, you should absolutely check this book, there are great insights about how Rails works and you will figure out that building a plugin is as easy as anything in Ruby, it’s just a matter of knowing where to place your code.” Codevader Blog

More Reviews

Rspec

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 an episode.