rspec/rspec-expectations — pull request #582 by myronmarston (2014-06-16 16:40:02+00:00)
Title: Fix regression in `contain_exactly`.

The new implementation in 3.0.0 allowed this to pass:

expect([1]).to contain_exactly()

The problem was that the `actual_matches` hash was lazily
initialized in an `expected.each_with_index` loop. This
meant that if `expected` was empty, `actual_matches` would
be made empty as well, causing the match logic to pass.

Fixes #581.