thoughtbot/shoulda-matchers — pull request #156 by steveklabnik (2012-09-19 07:43:50+00:00)
Title: Allow matched_index.unique to be truthy.

Currently, there is an assumption that `matched_index.unique` will
be `true` and not truthy. This is not always the case. This can
cause tests to fail, even though they should pass. This allows
`matched_index.unique` to be truthy.

This is just a first go to see what you think, I'm more than happy to adjust, as I've never even used shoulda before, to be honest.

This was inspired by https://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-core/MM3Lh2M8QBE , more information is there.