This repository has been archived by the owner on Nov 30, 2024. It is now read-only.
2.14.2
2.14.2 / 2013-08-14
Bug fixes
- Fix
be_<predicate>
matcher to not support operator chaining like the
be
matcher does (e.g.be == 5
). This led to some odd behaviors
sincebe_<predicate> == anything
returned aBeComparedTo
matcher
and was thus always truthy. This was a consequence of the implementation
(e.g. subclassing the basicBe
matcher) and was not intended behavior.
(Myron Marston). - Fix
change
matcher to compare using==
in addition to===
. This
is important for an expression like:
expect {}.to change { a.class }.from(ClassA).to(ClassB)
because
SomeClass === SomeClass
returns false. (Myron Marston)