Skip to content

Instantly share code, notes, and snippets.

@neudabei
Created August 10, 2018 08:51
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 neudabei/405c034f36129d3142ccd54c3f788419 to your computer and use it in GitHub Desktop.
Save neudabei/405c034f36129d3142ccd54c3f788419 to your computer and use it in GitHub Desktop.
fl_medium_blogpost
# These two queries
subject_categories = SubjectCategory.in_alphabetical_order
interested_subject_categories = current_user.interested_subject_categories
# will now return the objects set up in our test
let(:subject_category_interests) { [subject_category_one, subject_category_three] }
let(:subject_categories) { [subject_category_one, subject_category_two, subject_category_three] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment