Skip to content

Instantly share code, notes, and snippets.

@MaryKuz
Created March 28, 2019 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaryKuz/a8b7ccb4765731c794e493be4eb4bb4c to your computer and use it in GitHub Desktop.
Save MaryKuz/a8b7ccb4765731c794e493be4eb4bb4c to your computer and use it in GitHub Desktop.
Adding the test to the User model
it { should have_one(:auth_token).dependent(:destroy) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment