nickname is used in user.preferred_name method so I need to be able to pass
it into the factory when im testing. If I leave it out here does that mean
I can't do that?


On Sat, May 25, 2013 at 5:14 PM, Tim Cooper <notifications@github.com>wrote:

> In spec/factories/user.rb:
>
> > @@ -2,7 +2,7 @@
> >    factory :user do
> >      name        { Faker::Name.name }
> >      email       { Faker::Internet.email }
> > -    nickname    'blah'
> > +    nickname    ''
> >      challenge
> >      commitment  1000
>
> Factories should only setup required data (basically anything that you
> have a validation on. It feels like nickname could be dropped.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/justinhennessy/dm-challenge/pull/10/files#r4392000>
> .
>