Rspec 2 and Rails 3

January 12th, 2010

With the beta release of Rails 3 just around the corner, we’re planning a 2.0 release of Rspec, with an rspec-rails-2.0 gem for rails-3.0.

Late last week and through the weekend, Engine Yard, Relevance and Obtiva sponsored a meeting with Yehuda Katz, Carl Lerche, Chad Humphries, and me. The four of us laid out some groundwork and made some good progress toward what promises to be be a very friendly world for Rspec and Rails users and extenders.

Thanks to David Heinemeier Hansson and the rest of the Rails core team for embracing agnosticism without compromising convention over configuration.

I’ll follow up with details as things shape up, but here is a quick synopsis:

Rails users

Whether or not you use Rspec, you’ll see improvements in some of the built-in assertions, and other testing facilities that ship with Rails.

Rspec-rails users

If you do use Rspec, you’ll see a new rspec-rails plugin/gem that hooks into new features of rails-3 like the new rails generators. You’ll also see support for Merb-style request specs that wrap Rails’ integration tests.

Test framework authors

Rails’ testing APIs will be decoupled from the Test::Unit and Minitest runners. For authors of new testing frameworks, this means that you’ll be able to include a module in your framework’s objects instead of having to subclass TestCase. This will make it much easier to experiment with new ideas in the context of Rails, which clearly exposes those ideas to a wider audience than otherwise.

8 Responses to “Rspec 2 and Rails 3”

  1. Chris Says:

    Sounds great. Keep it coming.

  2. cheapRoc Says:

    Ok this seemed to clear up what advancements over the old standard Rails 2 Rspec usage was all about. Can’t wait!

  3. andhapp Says:

    Good to know it is in the pipeline.

  4. Robby Colvin Says:

    Can’t wait! This is the only thing that’s holding us back from upgrading to Rails 3 right now.

  5. Smit Shah Says:

    You guys ROCKS!!!!!

  6. Thomas R. Koll Says:

    What’s the best repository to follow?

  7. Sam Pohlenz Says:

    Thomas: I just stumbled across http://github.com/rspec/rspec-rails which appears to be the repo to watch.

  8. Jordan West Says:

    Great to hear. I have been trying be get up and running on the edge for a new app for a week or two now but didn’t want to leave rspec-rails behind. Any idea if/when there will be updates for cucumber-rails as well?

Leave a Reply