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. email: [email protected]
  4. nickname: Harry Potter
  5.  
  6. ron:
  7. name: Ron
  8. email: [email protected]
  9. nickname: KeeperP0wner
  10.  
  11. ginny_space_in_name:
  12. name: Ginny Weasley
  13. email: [email protected]
  14. nickname: Ginny<3
  15.  
  16. draco_malfoy_in_email:
  17. name: Malfoy
  18. email: draco-malfoy-invalid
  19. nickname: D.Malfoy
  20.  
  21. crabbe_ugly_nick:
  22. name: Crabbe
  23. email: [email protected]
  24. nickname: ..**~~00(((crabbe!!!!!11111!oneoneoneonew00t)))00~~**..
  25.  
  26.  
  27. voldemort:
  28. name:
  29. email: [email protected]
  30. nickname: he_who_must_not_be_named

Report this snippet  

You need to login to post a comment.