Skip to content

Instantly share code, notes, and snippets.

@shmdt
Forked from SabretWoW/rspec_model_testing_template.rb
Last active January 19, 2020 19:00
Show Gist options
  • Save shmdt/3f110a5863a4f4b644ede8c3f31bc4f4 to your computer and use it in GitHub Desktop.
Save shmdt/3f110a5863a4f4b644ede8c3f31bc4f4 to your computer and use it in GitHub Desktop.
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…
{"lastUpload":"2020-01-19T18:59:50.579Z","extensionVersion":"v3.4.3"}
[
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.4.3"
}
]
{
"sync.gist": "3f110a5863a4f4b644ede8c3f31bc4f4"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment