freerange/mocha — pull request #108 by ngokli (2012-11-15 19:27:11+00:00)
Title: Untested fix for #97: has_entry() does not work with an array as a hash value

Fix for issue #97: has_entry() does not work with an array as a hash value

The fix explicitly populates the key and value in different cases, rather than using flatten.

Untested because I use rvm, which interferes with mocha unit testing.
I added a unit test, but they could probably use some beefing up (make sure nil, array as hash key, etc. work), but I didn't want to go overboard without being able to test.

Thanks for taking a look, James!