2.99.0.beta2 / 2014-02-17
Deprecations:
- Deprecate chaining
by
,by_at_least
,by_at_most
orto
off of
expect { }.not_to change { }
. The docs have always said these are
not supported for the negative form but now they explicitly raise
errors in RSpec 3. (Myron Marston) - Change the semantics of
expect { }.not_to change { x }.from(y)
.
In RSpec 2.x, this expectation would only fail ifx
started with
the value ofy
and changed. If it started with a different value
and changed, it would pass. In RSpec 3, it will pass only if the
value starts aty
and it does not change. (Myron Marston) - Deprecate
matcher == value
as an alias formatcher.matches?(value)
,
in favor ofmatcher === value
. (Myron Marston) - Deprecate
RSpec::Matchers::OperatorMatcher
in favor of
RSpec::Matchers::BuiltIn::OperatorMatcher
. (Myron Marston) - Deprecate auto-integration with Test::Unit and minitest.
Instead, includeRSpec::Matchers
in the appropriate test case
base class yourself. (Myron Marston) - Deprecate treating
#expected
on a DSL-generated custom matcher
as an array when only 1 argument is passed to the matcher method.
In RSpec 3 it will be the single value in order to make diffs
work properly. (Jon Rowe)