Sha256: 9617173088e655198d5e6f6bff71c1b597e01ea7492191722c56bfd1f3ac7c20
Contents?: true
Size: 601 Bytes
Versions: 2
Compression:
Stored size: 601 Bytes
Contents
require "spec_helper" describe "Intercom::Contact" do it 'should not throw ArgumentErrors when there are no parameters' do Intercom.expects(:post) Intercom::Contact.create end describe 'converting' do let(:contact) { Intercom::Contact.from_api(user_id: 'contact_id') } let(:user) { Intercom::User.from_api(id: 'user_id') } it do Intercom.expects(:post).with( "/contacts/convert", { contact: { user_id: contact.user_id }, user: user.identity_hash } ).returns(test_user) contact.convert(user) end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
cogniteev-intercom-2.5.4 | spec/unit/intercom/contact_spec.rb |
intercom-2.5.4 | spec/unit/intercom/contact_spec.rb |