hey guys, now I got it! the thing I was not seeing was the instance.should validate_... validation evaluation, I end up doing this:
- create the object with desired state, - then iterating over all its attributes and -- validating required ones -- and not_validating not required ones. The key is the REQUIRED_ATTRS array must be 100% exact if not you get a non-passing example. check out the gist https://gist.github.com/175083/9d3b00b3b728e540077d85c10214d82bfeedd1cc there's still the issue of keeping REQUIRED_ATTRS and your model validations in sync, but I am happy with this at the moment :-) thanks a lot, joaquin
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users