addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwchatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgoogleimageimagesinstagramlinklocation-pinmagnifying-glassmailminusmoremuplabelShape 3 + Rectangle 1outlookpersonplusprice-ribbonImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruseryahoo

Pairing project question

From: Stuart
Sent on: Wednesday, March 20, 2013 4:15 PM
I have a question that came up while working on the pairing project.  I am at the point where I need to create the association between contacts and campaigns.  Obviously I can just add the has_many and belongs_to associations, but my question is:  would you create a test for that association first?  If so, what would that test look like?  I'm assuming it would be a model rspec test, maybe something like "campaign.contacts.s­ize.should eql(0)"?

Also, would it be possible to enable the Message Board feature for this group so we can post questions and answers without sending email to the entire group?
Thanks!
Stuart

Our Sponsors

  • Hashrocket

    Hosts meetings and provides pizza and beer!

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy