Pinned Loading
-
Rails Rspec model testing skeleton &...
Rails Rspec model testing skeleton & cheat sheet using rspec-rails, shoulda-matchers, shoulda-callbacks, and factory_girl_rails. Pretty much a brain dump of examples of what you can (should?) test in a model. Pick & choose what you like, and please let me know if there are any errors or new/changed features out there. Reddit comment thread: http://www.reddit.com/r/rails/comments/2ior1z/gist_of_rails_rspec_model_testing_skeleton_cheat 1# This is a skeleton for testing models including examples of validations, callbacks,
2# scopes, instance & class methods, associations, and more.
3# Pick and choose what you want, as all models don't NEED to be tested at this depth.
4#
5# I'm always eager to hear new tips & suggestions as I'm still new to testing,
-
42 Sweet, sweet things Rails (and Ru...
42 Sweet, sweet things Rails (and Ruby) can do. Wonderful reference. 1### 1. Get You a Hug, Every Friday
23FridayHug.com <http://fridayhug.com>
45### 2. Run From a Single File
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.