Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

2.14.2

Compare
Choose a tag to compare
@myronmarston myronmarston released this 15 Aug 05:01
· 1893 commits to main since this release

2.14.2 / 2013-08-14

full changelog

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
    since be_<predicate> == anything returned a BeComparedTo matcher
    and was thus always truthy. This was a consequence of the implementation
    (e.g. subclassing the basic Be 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)