Displaying 2 results from an estimated 2 matches for "hash_only".
Did you mean:
hash_one
2008 Aug 06
3
hash_excluding/hash_only?
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?
Thanks,
Steve
2007 Apr 12
0
dumping data to yaml in specs
I''m wondering whether I could dump out an object to yaml if a certain
spec fails. I believe you can do this sort of thing in test unit.
E.g.:
hash_one.should == hash_two if_failed? hash_two.to_yaml
Scott