Skip to content

Instantly share code, notes, and snippets.

@joegaudet
Created January 15, 2019 20:17
Show Gist options
  • Save joegaudet/41ce4d2176e7947929490edbefcd4302 to your computer and use it in GitHub Desktop.
Save joegaudet/41ce4d2176e7947929490edbefcd4302 to your computer and use it in GitHub Desktop.
def self.exercise_contact(s = new.login, contact_id: 108080)
puts "Fetching a contact by id #{contact_id}"
s.flipper[:use_salesforce_connect].disable
old_contact = s.contacts.get(contact_id)
s.flipper[:use_salesforce_connect].enable
new_contact = s.contacts.get(contact_id)
raise 'Contacts did not match' unless new_contact.to_h <= old_contact
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment