Rails411 is your one stop Ruby on Rails resource directory. Here you will find Ruby on
Rails tutorials, Conference & Workshop Listings, Forums, and Hosting. We are the
definitive guide for Ruby on Rails web applications, components, gems, scripts, and
other related resources for Ruby on Rails. Accomplishing more with your Ruby on Rails
website is easy with the help of these tested, pre-packaged, and ready-to-run
resources.
Click any category to add your site for free.
Wednesday, July 23 2008
| Rails411 |
| How To Do Test Driven Development In Rails |
In a nutshell, test-driven development means writing tests before you start the implementation of a piece of functionality. From the (excellent) book, Agile Web Development with Rails – “Think of it as a specification for how you want the code to work. When the test passes, you know you’re done coding. Better yet, you’ve added one more test to the application.”
Here is how I would go about this process in Rails. I’ll be taking the example of a simple user authentication system controller. At this point, you haven’t thought of any of the specifics, just a vague idea of what you want.
|
|
|