dchelimsky/rspec — pull request #54 by ngan (2012-02-19 10:32:26+00:00)
Title: Better support for boolean values with Change matcher

```
require 'spec_helper'

describe RSpec::Matchers::Change do
it "passes successfully wrong change" do
@a = true
lambda {
@a = 1
}.should change { @a }.from(true).to(false)
end
end
```

That test should fail, but it passes. This bug was also affecting rspec 2, but was fixed with https://github.com/rspec/rspec-expectations/commit/ecd24f595d7e785dcc9abf60bd0489bb41f5a12d.

This is a backport of that fix.