[rspec-users] hash_excluding/hash_only?
Mark Wilden
mark at mwilden.com
Wed Aug 6 12:37:51 EDT 2008
On Wed, Aug 6, 2008 at 9:22 AM, Steve <vertebrate at gmail.com> wrote:
> I know there is a hash_including, which is quite useful. Are there by
> chance any matchers for ensuring a hash includes only the specified values,
> or that it doesn't have certain values?
>
I'm just on my way out the door, but just wanted to say that if there isn't,
writing your own matcher is super easy.
///ark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20080806/39d8a506/attachment.html>
More information about the rspec-users
mailing list