Hi In the model I have User attr_accessor :validate_email_id validates_presence_of :email ,:if => :validate_email_id Could anybody please tell me how can I define a Factory for the above? Thanks in advance Sijo
on 2009-06-02 07:00
on 2009-06-02 08:37
Move that to a module and include it as a mixin in your model?
on 2009-06-02 08:39
N/M. Realized that you were talking about the factory-girl gem.
on 2009-06-02 08:49
Mukund wrote: > Move that to a module and include it as a mixin in your model? Did not understand this.Could you please elaborate? Sijo