[rspec-users] rspec-2.8.0.rc1 is released

David Chelimsky dchelimsky at gmail.com
Sun Nov 6 18:17:44 EST 2011


See the blog post for more information, but highlights include:

1. tag overrides

Now you can set tag/filter defaults in .rspec:

  --tag ~javascript

or in RSpec.configure (in spec_helper.rb):

  RSpec.configure {|c| c.filter_run_excluding :javascript}

and then override that from the command line when you want to run the javascript specs:

  rspec --tag javascript

2. --order rand

Courtesy of Justin Ko, this addition allows you to run examples in random order. To make that your default, we recommend putting this in .rspec:

  --order rand

Then you can override it from the command line like this:

  rspec --order default

Or you specify a seed in two ways:

  rspec --order rand:1234
  rspec --seed 1234

3. speed improvements in rspec-expectations

YMMV, but all of the built-in matchers have been reimplemented as classes (they were previously generated using the DSL, which interprets a lot of code at invocation time).

There's more info at http://blog.davidchelimsky.net/2011/11/06/rspec-280rc1-is-released/. Please give it a read, give rspec-2.8.0.rc1 a try, and report any issues to:

* https://github.com/rspec/rspec-core/issues
* https://github.com/rspec/rspec-expectations/issues
* https://github.com/rspec/rspec-mocks/issues
* https://github.com/rspec/rspec-rails/issues



More information about the rspec-users mailing list