Most people now use rspec for unit testing and cucumber for integration testing. You can see a recent fairy poll here , where 87% chose rspec in the poll.
Great book for rspec and cucumber. Rspec book written by the current Rspec maintainer. It passes both rspec and cucumbers.
Railscasts also has some relevant screencasts. Cucmber1 , cucumber2
Many people seem to like cucumber, but this does not seem useful if you do not have a client for whom you work. Most of my projects are side projects that I do myself, so currently I am looking at steak instead of cucumber. This will allow me to use rspec for unit tests and steaks for integration tests and reduces some of the complexity / boredom that is introduced when using cucumber.
People said that it doesnβt really matter which test structure you choose, all the more important that you BEGIN TESTING. I agree with this, but I hope that these resources will help you get started.
However, on the one hand, you probably want to avoid from the very beginning - these are lights. Use factories instead and check out this episode of railscast on it.
UPDATE: the steak is no longer needed, and the same functions are baked into rspec.
source share