On 01/08/2011, at 8:34 PM, Simon Harris wrote:
From tracing it through, factory girl seems to execute the super type
definition BEFORE the sub type therefore before u.login 'admin' can be run, the
user is created with no login and thus the email is set to "(a)example.host". Note
the empty user name.
But even that seems odd as I would have expected
u.sequence(:login) { |n| "user#{n}" }
to have assigned a login :/
I have only ever used machinist so I'm no expert with factory girl.