bypassing validations

2 views
Skip to first unread message

Karl Baum

unread,
Apr 6, 2010, 9:41:36 PM4/6/10
to pickle
Trying to bypass validations in one of my cucumber tests and I am
having some trouble. I am following this example:

http://codetunes.com/2009/11/05/fixtures-without-validation-with-factory-girl/

Seems to work when I invoke Factory(:invalid_model) but pickle is
using Factory.create(:invalid_object) which seems to throw the
validation error. Always thought that Factory and Factory.create were
synonyms. Is this expected?

thx.

-karl


Reply all
Reply to author
Forward
0 new messages