This repository has been archived by the owner on Nov 30, 2024. It is now read-only.
3.0.0.beta1
Pre-release
Pre-release
myronmarston
released this
08 Nov 04:55
·
1673 commits
to main
since this release
3.0.0.beta1 / 2013-11-07
Breaking Changes for 3.0.0:
- Remove explicit support for 1.8.6. (Jon Rowe)
- Remove the deprecated
be_close
matcher, preferringbe_within
instead.
(Sam Phippen) - Rename
be_true
andbe_false
tobe_truthy
andbe_falsey
. (Sam Phippen) - Make
expect { }.to_not raise_error(SomeSpecificClass, message)
,
expect { }.to_not raise_error(SomeSpecificClass)
and
expect { }.to_not raise_error(message)
invalid, since they are prone
to hiding failures. Instead, useexpect { }.to_not raise_error
(with no
args). (Sam Phippen) - Within
RSpec::Matchers.define
blocks, helper methods made available
either viadef self.helper
orextend HelperModule
are no longer
available to thematch
block (or any of the others). Instead
include
your helper module and define the helper method as an
instance method. (Myron Marston)
Enhancements:
- Support
do..end
style block withraise_error
matcher. (Yuji Nakayama) - Rewrote custom matcher DSL to simplify its implementation and solve a
few issues. (Myron Marston) - Allow early
return
from within custom matcher DSL blocks. (Myron
Marston) - The custom matcher DSL's
chain
can now accept a block. (Myron
Marston) - Support setting an expectation on a
raise_error
matcher via a chained
with_message
method call. (Sam Phippen)
Bug Fixes:
- Allow
include
andmatch
matchers to be used from within a
DSL-defined custom matcher'smatch
block. (Myron Marston)
Deprecations:
- Using the old
:should
syntax without explicitly configuring it is deprecated.
It will continue to work but will emit a deprecation warning in RSpec 3 if
you do not explicitly enable it. (Sam Phippen)