Skip to content

Instantly share code, notes, and snippets.

@tjmcewan
Created July 15, 2014 04:53
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 tjmcewan/07e0f970d612e25daa42 to your computer and use it in GitHub Desktop.
Save tjmcewan/07e0f970d612e25daa42 to your computer and use it in GitHub Desktop.
shoulda spec examples
it { is_expected.to have_many(:appointments).through(:outlets) }
it { is_expected.to validate_presence_of(:outlet_id) }
it { is_expected.to belong_to(:outlet) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment