floehopper/mocha — pull request #39 by alindeman (2011-10-21 17:37:41+00:00)
Title: multiple_yields with Hash instances

When trying to do a multiple yields with hashes, the hashes come back as arrays (almost like `to_a` was called?).

I don't know the internals of mocha, but in the attached pull request I wrote a red test which is failing in MRI 1.8.7 and 1.9.2 (and maybe others).

Awesome stuff otherwise! Thanks.

```
1) Failure:
test_should_yield_multiple_times_with_hashes_correctly(ExpectationTest) [test/unit/expectation_test.rb:155]:
<[{:one=>"1"}, {:two=>"2"}]> expected but was
<[[[:one, "1"]], [[:two, "2"]], [[:one, "1"]], [[:two, "2"]]]>.
```