Skip to content

Instantly share code, notes, and snippets.

@joshrendek
Created June 24, 2012 15:50
Show Gist options
  • Save joshrendek/2983771 to your computer and use it in GitHub Desktop.
Save joshrendek/2983771 to your computer and use it in GitHub Desktop.
c = Contact.new(first_name: 'First', last_name: 'Last', middle_initial: 'M', contact_owner_id: 1, status: 'open', :due_on => Date.today, :subject => subj)
c.should_receive(:set_category_based_on_subject)
c.save(:validate => false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment