About "A Guide to Testing the Rails"

Intended Audience

This article is for fellow Rubyists looking for more information on test writing and how that fits into Ruby On Rails. If you’re new to test writing or experienced with test writing, but not in Rails, hopefully you’ll gain some practical tips and insight on successful testing.

Assumptions

Just so we’re all on the same page here, I’m making a few assumptions about you.

If you haven’t accomplished all of the above, you might be jumping ahead of yourself. Check out www.rubyonrails.org for some great beginner’s tutorials.

Make sure you have Ruby 1.8.2 or greater and Rails 0.12 or greater.

Also, hats off to xal (and others) for creating this site.


Steve Kellock ::: skellock@gmail.com ::: what-a-day on #rubyonrails

Chris Carter ::: cdcarter@concentrationstudios.com ::: cdcarter in irc :: updated for rails 1.1.x—07/18/06

Contents

  1. Testing 1-2-3... is this thing on?
  2. Introducing Test/Unit
  3. Hello World on Steroids
  4. The Test Case Life Cycle
  5. Hey Test/Unit. Assert This!
  6. The Rails Fly-By
  7. The Lo-Down on Fixtures
  8. Testing Your Models
  9. Testing Your Controllers
  10. Testing Your Mailers
  11. Additional Resources