search for: should_be_different_by

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

2006 Dec 04
5
should_be_different -- possible implementation
...method but omit the difference, then any amount difference is ok. Testing destroy might indicate using -1 for the difference to indicate that the count has gone down. My implementation works, but a more natural syntax would be: Person.count.should_be_different do blah end and: Person.count.should_be_different_by 1 do blah, blah end Comments? Steve