Created
January 15, 2019 20:17
-
-
Save joegaudet/41ce4d2176e7947929490edbefcd4302 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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