RSpec is Fun
I've been using RSpec with my latest project, and it's a welcome change from the traditional Test::Unit for Ruby . RSpec is a more natural way to write tests for your software. It seems to be much easier to compose tests, and anything that makes testing easier is OK in my book. A specific example of why I'm falling for RSpec: You can easily group common tests together, and include this grouping in your main tests. Of course you can do this in any number of ways with Test::Unit, but RSpec makes it so clean and obvious. Here's an example of a very common set of tests that I need to run again all my controllers: describe "Requires Authorization", :shared => true do describe "when not logged in" do describe "when accessing index page" do it "should redirect to login page" do get 'index' response.should redirect_to(new_session_path) end end describe "when accessing new datab...