Skip to content

Instantly share code, notes, and snippets.

@tonatiuh
Created September 12, 2012 22:16
Show Gist options
  • Save tonatiuh/3710358 to your computer and use it in GitHub Desktop.
Save tonatiuh/3710358 to your computer and use it in GitHub Desktop.
Records
## The vertical
#Be sure of that vertical with id 1 exists
## The campaign (form)
#Put to the campaign the state of washignton
#Set to the campaign the vertical: 1
## The contacts (on the rails console)
Contact.create(:name => 'Jodee Clore', :vertical_id => 1, :geo_id => '15121') #this geo_id's are citys of washington
Contact.create(:name => 'Trish Roudebush', :vertical_id => 1, :geo_id => '14974')
@antillas21
Copy link

perhaps the test assertion could also be:

contact.purchases.count.should eq(1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment