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:
Thanks for any help!
The RSpec Book: Behaviour Driven Development with RSpec, Cucumber, and Friends. Focuses on BDD rather than TDD, but that's the whole point of RSpec and Cucumber. Not entirely specific to Rails, but has several chapters dedicated to it. Well written and up to date (though still in beta).
Many of the points you mention are discussed in different episodes of Railscasts by Ryan Bates, including:
http://railscasts.com/episodes/275-how-i-test
http://railscasts.com/episodes/158-factories-not-fixtures-revised
http://railscasts.com/episodes?utf8=%E2%9C%93&search=cucumber
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With