TDD killing my joy of Rails

Related and worht reading:

Related to these options:

http://weblog.techno-weenie.net/2006/11/24/test-spec-kicks-simply_bdds-ass

- rob

When you first install the RSpec on Rails plugin, your existing tests won't run. Don't worry though, there's a very easy workaround! http://rubyforge.org/tracker/index.php?func=detail&aid=6629&group_id=797&atid=3149 read through that, I've got a simple explanation. It's really really easy so check it out.

You can use RSpec along with any standard Rails tests. This is nice if you want to install something like the restful_authentication plugin, but use RSpec to drive your design. Use my workaround above, and rake will automatically run all your tests and specs for you.

The only thing that you'll have to create is spec files for your existing code. I'd suggest generating an rspec_model and rspec_controller to get the directory structure and a template spec file to work from.

Also, we have an RSpec list that you should check out. Go to the project page and sign up!

Pat

To get coloring you also need the facets gem:

gem install facets

From the gem description:

        If you have the 'facets' gem installed, then TURN output will be         displayed in wonderful technicolor (but only if your terminal         supports ANSI color codes).

Thank you Jacob. After I installed facets now the turn seems to work. I see green, red and other colors to highlight autotest window. Very cool and easy to spot problems!