lib/muack/satisfy.rb in muack-1.0.2 vs lib/muack/satisfy.rb in muack-1.0.3

- old
+ new

@@ -64,10 +64,17 @@ end class HashIncluding < Satisfy def initialize hash super lambda{ |actual_arg| - actual_arg.values_at(*hash.keys) == hash.values }, [hash] + actual_arg.values_at(*hash.keys).zip(hash.values).all? do |(av, ev)| + if ev.kind_of?(Satisfy) + ev.match(av) + else + ev == av + end + end + }, [hash] end end class Including < Satisfy def initialize element