RSpec-2.0.0 is released!
October 10th, 2010
This marks the end of a year-long effort that improves RSpec in a number of ways, including modularity, cleaner code, and much better integration with Rails-3 than was possible before.
Docs, with a little bit of relish
In addition to the documentation available at all the places mentioned my earlier post, we’ve also got all of the Cucumber features posted to Justin Ko’s new Cucumber presentation app, relish.
We’ll also have the RDoc up on http://rdoc.info in a day or so.
Thanks!
Big thanks to 80+ contributors who submitted patches for RSpec-2.0.0, including [1]:
Aan, Adam Walters, Akira Matsuda, Alex Crichton, Anderson Dias, Andre Arko, Andreas Neuhaus, Ashley Moran, Ben Armston, Ben Rady, Brasten Sager, Brian J Reath, Carlhuda, Chad Humphries, Charles Lowell, Chris Redinger, Chuck Remes, Corey Ehmke, Corey Haines, Dan Peterson, Dave Newman, David Genord II, David S. Kang, Ethan Gunderson, Gonçalo Silva, Greg Sterndale, Hans de Graaff, Iain Hecker, Jacques Crocker, Jean-Daniel Guyot, Jeff Ramnani, Jim Breen, Johan Kiviniemi, Josep Mª Bach, Josh Graham, Joshua Nichols, Kabari Hendrick, Kristian M, Lailson B, Len Smith, Leonardo Bessa, Les Hill, Luis Lavena, Marcin Kulik, Markus Schirp, Matt Remsik, Matt Yoho, Matthew Todd, Michael Niessner, Mike Gehard, Myron Marston, Nate Jackson, Neeraj Singh, Nestor Ovroy, Nick Ang, Nicolas Braem, Paul Rosania, Phil Smith, Postmodern, Prasad, Rob Sanheim, Roman Chernyatchik, Ryan Bigg, Ryan Briones, Sam Pohlenz, Scott Taylor, Shin-ichiro OGAWA, Thibaud Guillaume-Gentil, Tim Connor, Tim Harper, Tom Stuart, Vít Ondruch, Wincent Colaiuta, aslakhellesoy, eira, garren smith, grosser, hasimo, justinko, rup, speedmax, wycats
Extra special thanks go to:
- Chad Humphries for contributing his Micronaut gem which is the basis for rspec-core-2
- Yehuda Katz, Carl Lerche, and José Valim, for their assistance with getting rspec-rails-2 to take advantage of new APIs in Rails-3, and for shepherding patches to Rails that made it far simpler for testing extensions like rspec-rails to hook into Rails’ testing infrastructure. Their work here has significantly reduced the risk that Rails point-releases will break rspec-rails.
- Myron Marston for a wealth of thoughtful contributions including Cucumber features that we can all learn from
- Justin Ko for his direct contributions to rspec, and for relish, which makes executable documentation act more like documentation.
What’s next?
rspec-rails-2 for rails-2
There are a couple of projects floating around that support rspec-2 and rails-2. I haven’t had the chance to review any of these myself, but my hope is that we’ll have be an official rspec-2 for rails-2 gem in the coming months.
rspec-1 maintenance
rspec-1 will continue to get maintenance releases, but these will be restricted, primarily, to bug fixes. Any new features will go into rspec-2, and will likely not be back-ported.
[1] Contributor names were generated from the git commit logs.


October 10th, 2010 at 6:40 pm
Congrats, David. RSpec has a bright future due to all the hard work you’ve put into it.
October 10th, 2010 at 7:49 pm
Congratulations guys! I hope that rspec becomes the default test framework for the next version of rails. Is that the idea?
October 10th, 2010 at 11:35 pm
Amazing work. It’s nice to see fail_fast make its way over (saw it in Django), and the inclusion filters are a wonderful idea. The array =~ operator will be very handy (much more concise than shoulda’s assert_same_elements). I really need to convince the team to port over from Test::Unit.
I expect the final RSpec Book PDF is due any day now? Thanks David.
October 11th, 2010 at 12:50 am
Congratulations!
RSpec 2 is an absolute pleasure to work with. Thanks for all the effort!
October 11th, 2010 at 3:30 am
bro fist.
October 11th, 2010 at 8:30 am
@Nathan - re: The RSpec Book - now that RSpec-2 is released, I’m reviewing all of the examples this week to ensure they work correctly and then there are a couple of short production steps (2nd copy-edit and typesetting) and then off to the printer. Should be on shelves in Nov, definitely by early December. Yay!
October 11th, 2010 at 12:21 pm
@David - Thanks for the heads up! It seems a lot of Ruby/Rails books are due in that timeframe. While I’m looking forward to the final book, I’m definitely going to continue reading the beta I have now - in preparation for the Rails Rumble. Might send some errata your way. Thanks again.
October 11th, 2010 at 2:47 pm
Thank you for all of your hard work. I was pleased today when the build broke because bundler upgraded to rspec 2.0…… can’t wait to dig in to all fo the goodness.
October 11th, 2010 at 7:20 pm
Thanks for all the hard work guys. Totally love RSpec.
October 13th, 2010 at 4:14 am
Thank you very much to show me how to prictice this .
October 14th, 2010 at 3:53 am
Congrats. As a ruby newcomer, rspec2 is being a joy to work with.
October 15th, 2010 at 8:42 pm
Hi, can one use RSpec 2 with a Rails 2.3.5 application? If so, where can one locate the documentation? At this time,
script/generate rspec:install
/Users/conradwt/.rvm/gems/ruby-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:440:in `load_missing_constant’: uninitialized constant Rails::Railtie (NameError)
October 16th, 2010 at 12:57 pm
@Conrad - rspec-rails-2 does not support rails-3. There is an “rspec2-rails23 project”:http://github.com/rsanheim/rspec-rails23, but it has yet to be updated to rspec-2.0.0 (it’s based off an early beta). Keep your eye on that project, as I suspect it, or a fork of it, will get updated.
October 17th, 2010 at 5:17 am
I have been mucking around with Ruby for about 2 years now and have only just started with testing using the recently released rspec 2. There is a lot of great stuff out there, but rspec has totally blown me away. In the space of a week, I don’t want to write a line of code without it! Many many thanks to David and the team for putting together a fantastic gem.
October 19th, 2010 at 4:53 am
Hi David
Great work on the release, please keep it up.
Although I’ve noticed a few backward-incompatibility breakages when upgrading our Rails 2 app to Rails 3.
I’ve written a blog on this here: http://www.arctickiwi.com/blog/32-upgrading-to-rspec-2-with-ruby-on-rails-3
It includes a plea to list the differences, if possible.
Thanks!
October 19th, 2010 at 5:01 pm
David, Congratulations! Nice work!
October 19th, 2010 at 8:22 pm
@Jonathan - I posted a response on your blog. Most of what you’re looking for is available in obvious places like the github repos and this blog. I’ll be sure to update the things that are missing.