Guest User

Untitled

a guest
Oct 17th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. Model specs should test the following:
  2.  
  3. 1. Factories - Default factory should generate a valid object
  4. 1. Validations - Data should pass validations
  5. 1. Methods - Class and instance methods should perform as expected
  6.  
  7. The name and location of spec files should mirror the file structure of the /app directory
  8.  
  9. Use a *sequence* in a factory to deal with uniqueness validations
  10.  
  11. FactoryGirl Callbacks of note:
  12. * before_build
  13. * after_build
  14. * before_create
  15. * after_create
Add Comment
Please, Sign In to add comment