Posted By

berkes on 07/11/10


Tagged

testing rails ruby unit fixture


Versions (?)

Harry Potter characters fixture


 / Published in: Other
 

Just a funny, yet usefull fixture for testing users in a rails app. Using "somewhat real" fixtures, will keep testing both fun and realistic. Knowing that "Crabbeuglynick" failed, is a lot easier to communicate then knowing "usertx01 failed"

  1. harry:
  2. name: Harry
  3. nickname: Harry Potter
  4.  
  5. ron:
  6. name: Ron
  7. nickname: KeeperP0wner
  8.  
  9. ginny_space_in_name:
  10. name: Ginny Weasley
  11. nickname: Ginny<3
  12.  
  13. draco_malfoy_in_email:
  14. name: Malfoy
  15. email: draco-malfoy-invalid
  16. nickname: D.Malfoy
  17.  
  18. crabbe_ugly_nick:
  19. name: Crabbe
  20. nickname: ..**~~00(((crabbe!!!!!11111!oneoneoneonew00t)))00~~**..
  21.  
  22.  
  23. voldemort:
  24. name:
  25. nickname: he_who_must_not_be_named

Report this snippet  

You need to login to post a comment.