[ANN] rspec 1.2.0 Released

D

David Chelimsky

rspec version 1.2.0 has been released!

Behaviour Driven Development for Ruby.

Changes:

### Version 1.2.0

WARNINGS:

* If you use the ruby command to run specs instead of the spec command, y=
ou'll
need to require 'spec/autorun' or they won't run. This won't affect you=
if
you use the spec command or the Spec::Rake::SpecTask that ships with RS=
pec.

* require 'spec/test/unit' to invoke test/unit interop if you're using
RSpec's core (this is handled implicitly with spec-rails)

* setup and teardown are gone - use before and after instead

* you can still use setup and teardown if you're using
Test::Unit::TestCase as the base ExampleGroup class (which is implici=
t
in rspec-rails)

* The matcher protocol has been improved. The old protocol is still
supported, so as long as you're not monkey patching rspec's built-in
matchers, or using extension libraries that do, this should not affect
you. If you run into trouble, you'll just need to change:

* failure_message =3D> failure_message_for_should
* negative_failure_message =3D> failure_message_for_should_not

* All references to rubygems have been removed from within rspec's code.

* See http://gist.github.com/54177 for rationale and suggestions on
alternative approaches to loading rubygems

* deprecations

* BaseTextFormatter#colourize - use colorize_failure instead.
* BaseTextFormatter#magenta - use red instead.

* enhancements

* cleaner integration with with heckle-1.4.2
* allow registering example groups with a path-like key (Pat Maddox)
* start DRb service at "druby://localhost:0" (Hongli Lai) - See
http://redmine.ruby-lang.org/issues/show/496
* consistent reporting of errors as failures
* added spec/test/unit as more intuitive path to loading test/unit intero=
p lib
* added explicit autorun feature for running specs with ruby command
* added handling for does_not_match? for matchers that want to know
the context in which they were called
* lots of ruby 1.9.1 compatibility fixes from Chad Humprhies
* improved feedback from
be_kind_of/be_a_kind_of/be_instance_of/be_an_instance_of (Jakub
=E2=89=88=E2=80=A0=E2=89=88=E2=80=A2astn=E2=88=9A=CE=A9)
* added --format silent (l) option, which is now the default when
running --heckle (Bob Aman)
* sexy new custom matcher creation (Corey Haines & David Chelimsky -
initial concept by Yehuda Katz)
* improved matcher protocol - old one is still supported, but new
one is cleaner and prefered

* bug fixes

* support delegating operator matchers to subject with should_not
* all arguments are included if --drb is specified in spec.opts
(Neil Buckley). Closes #671.
* added --autospec option hack (used internally) to get --color to
work when using --drb and autospec.
* Fixed mock framework failure message bug in which similar calls
were excluded from the output
* cryptic error message on change.rb when the from value is wrong
(Michael Murray). Closes #706.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,818
Messages
2,569,727
Members
45,661
Latest member
NadineBour

Latest Threads

Top