Posts by Thiago Borges • 11 points
1 post
-
1
votes3
answers847
viewsA: Correct model test (Rspec)
Use the Factorygirl as Elvis said, but it is recommended to use the let to make the scope of the test cleaner, in addition to some of the other advantages cited in Betterspecs. My suggestion is:…