Test Driven Development (TDD) with Rails

Posted by macek on Stack Overflow See other posts from Stack Overflow or by macek
Published on 2010-04-23T21:30:56Z Indexed on 2010/04/23 21:33 UTC
Read the original article Hit count: 169

I am looking for TDD resources that are specific to Rails.

I've seen the Rails Guide: The Basics of Creating a Rails Plugin which really spurred my interest in the topic.

I have the Agile Development with Rails book and I see there's some testing-related information there. However, it seems like the author takes you through the steps of building the app, then adds testing afterward. This isn't really Test Driven Development.

Ideally, I'd like a book on this, but a collection of other tutorials or articles would be great if such a book doesn't exist.

Things I'd like to learn:

  • Primary goal: Best Practices
  • Unit testing
  • How to utilize Fixtures
    • Possibly using existing development data in place of fixtures
      • What's the community standard here?
  • Writing tests for plugins
  • Testing with session data
    • User is logged in
    • User can access URL /foo/bar
  • Testing success of sending email

Thanks for any help!

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about TDD