search for: haskey

Displaying 1 result from an estimated 1 matches for "haskey".

Did you mean: laskey
2007 Oct 25
0
Fwd: [ mocha-Feature Requests-15021 ] without or not params matcher
...&aid=15021&group_id=1917 Category: Interface Improvements (example) Group: None Status: Open Priority: 3 Submitted By: Jerry Vos (jerryvos) Assigned to: Nobody (None) Summary: without or not params matcher Initial Comment: Would be nice if you could do MyClass.expects(:create!).without(hasKey(:property1)) or something like MyClass.expects(:create!).with(not(hasKey(:property1))) MyClass.expects(:create!).with(not.hasKey(:property1))) But you can''t use not because not is a ruby keyword. The Not Matcher is just something like: class Not # :nodoc: def initial...