This is an additional note on the Factory Girl question - what is the purpose?
I'm not sure if my question is considered to be recurring, but I'm just still not very clear after reading this post, since I think my doubt is still different.
Okay, so now that we can always use User.create () in the before (: each) block in the Rspec test, why will we still use Factory Girl then?
I got all this confusion when I read Michael Hartle's βRails 3 Tutorial,β when he suddenly jumped into Factory Girl, but used User.create () to create the user instance to the end.
I want someone to be able to clarify this moment for me, a lot!
adam_0628
source share