Validations with dm-is-remixable

6 views
Skip to first unread message

Diego Marcet

unread,
Jun 21, 2013, 4:08:13 PM6/21/13
to datam...@googlegroups.com
Hi guys,

I'm having some issues when using dm-is-remixable with validations on my models. My scenario is the following: I defined a remixable File module that has a couple of simple validations (path attribute must be present and be unique). Now, to unit test my model I'm declaring a dummy class and including the remix, just to generate the associated class; but for some reason validations don't appear to be running and the call to valid? will always return true.

You can check out the full code snippet at this gisthttps://gist.github.com/anero/5833725


Thanks,
Diego.
Reply all
Reply to author
Forward
0 new messages