rspec-2.2 is released!

November 28th, 2010

rspec-core-2.2.0

full changelog

  • Deprecations/changes

    • –debug/-d on command line is deprecated and now has no effect
    • win32console is now ignored; Windows users must use ANSICON for color support (Bosko Ivanisevic)
  • Enhancements

    • Raise exception with helpful message when rspec-1 is loaded alongside rspec-2 (Justin Ko)
    • debugger statements just work as long as ruby-debug is installed
    • otherwise you get warned, but not fired
    • Expose example.metadata in around hooks
    • Performance improvments (see Upgrade.markdown)
  • Bug fixes

    • Make sure –fail-fast makes it across drb
    • Pass -Ilib:spec to rcov

rspec-mocks-2.2.0

full changelog

  • Enhancements

    • Added “rspec/mocks/standalone” for exploring the rspec-mocks in irb.
  • Bug fix

    • Eliminate warning on splat args without parens (Gioele Barabucci)
    • Fix bug where obj.should_receive(:foo).with(stub.as_null_object) would
      pass with a false positive.

rspec-rails-2.2.0

full changelog

  • Enhancements

    • Added stub_template in view specs
  • Bug fixes

    • Properly include helpers in views (Jonathan del Strother)
    • Fix bug in which method missing led to a stack overflow
    • Fix stack overflow in request specs with open_session
    • Fix stack overflow in any spec when method_missing was invoked
    • Add gem dependency on rails ~> 3.0.0 (ensures bundler won’t install rspec-rails-2 with rails-2 apps).

One Response to “rspec-2.2 is released!”

  1. Wincent Colaiuta Says:

    A couple of data points on the performance improvements from 2.0/2.1 to 2.2:

    One project: a very fast extension written in C, with no long-running examples; time to execute 724 examples dropped from about 0.3 seconds to 0.23 seconds.

    Another project: a Rails app with lots of relatively long-running examples; time to execute 4.3k examples dropped from somewhat over 10 minutes down to just under 6 minutes.

Leave a Reply