diff --git a/spec/fixtures/vcr_cassettes/contact_update_class.yml b/spec/fixtures/vcr_cassettes/contact_update_class.yml index f6ce1003..282b8cbb 100644 --- a/spec/fixtures/vcr_cassettes/contact_update_class.yml +++ b/spec/fixtures/vcr_cassettes/contact_update_class.yml @@ -5,7 +5,7 @@ http_interactions: uri: https://api.hubapi.com/contacts/v1/contact?hapikey=demo body: encoding: UTF-8 - string: '{"properties":[{"property":"email","value":"update_class_contact_1531237344@hsgem.com"}]}' + string: '{"properties":[{"property":"email","value":"update_class_contact_1532354159@hsgem.com"}]}' headers: Content-Type: - application/json @@ -15,7 +15,7 @@ http_interactions: message: OK headers: Date: - - Tue, 10 Jul 2018 15:42:24 GMT + - Mon, 23 Jul 2018 13:55:59 GMT Content-Type: - application/json;charset=utf-8 Transfer-Encoding: @@ -23,15 +23,15 @@ http_interactions: Connection: - keep-alive Set-Cookie: - - __cfduid=d0cc358f0593b4f202d4b31a6291e898d1531237344; expires=Wed, 10-Jul-19 - 15:42:24 GMT; path=/; domain=.hubapi.com; HttpOnly + - __cfduid=d254a723a2f294719902c0b21082d98891532354159; expires=Tue, 23-Jul-19 + 13:55:59 GMT; path=/; domain=.hubapi.com; HttpOnly Access-Control-Allow-Credentials: - 'false' Vary: - Accept-Encoding - Accept-Encoding X-Trace: - - 2B734DC267A7304CC111D196DE7C2660E1000BC990000000000000000000 + - 2B21774C7272DB8F0F1669681382D64447987AFBB0000000000000000000 Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload Expect-Ct: @@ -39,15 +39,15 @@ http_interactions: Server: - cloudflare Cf-Ray: - - 438423dbbca5a881-CDG + - 43eea5d7abf13c2f-CDG body: encoding: UTF-8 - string: '{"vid":7848874,"canonical-vid":7848874,"merged-vids":[],"portal-id":62515,"is-contact":true,"profile-token":"AO_T-mMNtdyl7sTFJ72Bk9cqpqesyAal1H7uwUiq1ikqz3XMu9uU3vqtGHCRp8S4FpUnUzw43q9AzWLCIJhjU8tuwIn-4F0rKB3fUVPwq7MIAmekxoWunzcamHxf1DskS6E3T5BZz1lF","profile-url":"https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mMNtdyl7sTFJ72Bk9cqpqesyAal1H7uwUiq1ikqz3XMu9uU3vqtGHCRp8S4FpUnUzw43q9AzWLCIJhjU8tuwIn-4F0rKB3fUVPwq7MIAmekxoWunzcamHxf1DskS6E3T5BZz1lF/","properties":{"email":{"value":"update_class_contact_1531237344@hsgem.com","versions":[{"value":"update_class_contact_1531237344@hsgem.com","source-type":"API","source-id":null,"source-label":null,"timestamp":1531237344670,"selected":false}]}},"form-submissions":[],"list-memberships":[],"identity-profiles":[{"vid":7848874,"is-deleted":false,"is-contact":false,"pointer-vid":0,"previous-vid":0,"linked-vids":[],"saved-at-timestamp":0,"deleted-changed-timestamp":0,"identities":[{"type":"EMAIL","value":"update_class_contact_1531237344@hsgem.com","timestamp":1531237344673,"is-primary":true,"source":"UNSPECIFIED"},{"type":"LEAD_GUID","value":"96bbfeb3-a976-4c88-a37e-38b02300efc5","timestamp":1531237344679,"source":"UNSPECIFIED"}]}],"merge-audits":[]}' + string: '{"vid":8124374,"canonical-vid":8124374,"merged-vids":[],"portal-id":62515,"is-contact":true,"profile-token":"AO_T-mNNSis_wx5BmeNFwSHNq6y-uYmedUiDCm75r0soX-bqzmwgxnjP7krkfVSAff9Q77PQbBnZPaVMFo8YKTL_W41ikNh_dOQNxtTuxdo5QeU4APO8RgPKonSpVJCFze-mdCi0lIpx","profile-url":"https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mNNSis_wx5BmeNFwSHNq6y-uYmedUiDCm75r0soX-bqzmwgxnjP7krkfVSAff9Q77PQbBnZPaVMFo8YKTL_W41ikNh_dOQNxtTuxdo5QeU4APO8RgPKonSpVJCFze-mdCi0lIpx/","properties":{"email":{"value":"update_class_contact_1532354159@hsgem.com","versions":[{"value":"update_class_contact_1532354159@hsgem.com","source-type":"API","source-id":null,"source-label":null,"timestamp":1532354159430,"selected":false}]}},"form-submissions":[],"list-memberships":[],"identity-profiles":[{"vid":8124374,"is-deleted":false,"is-contact":false,"pointer-vid":0,"previous-vid":0,"linked-vids":[],"saved-at-timestamp":0,"deleted-changed-timestamp":0,"identities":[{"type":"EMAIL","value":"update_class_contact_1532354159@hsgem.com","timestamp":1532354159434,"is-primary":true,"source":"UNSPECIFIED"},{"type":"LEAD_GUID","value":"aa7263b2-352b-4d95-afcc-39dce7fcf201","timestamp":1532354159442,"source":"UNSPECIFIED"}]}],"merge-audits":[]}' http_version: - recorded_at: Tue, 10 Jul 2018 15:42:24 GMT + recorded_at: Mon, 23 Jul 2018 13:55:59 GMT - request: method: post - uri: https://api.hubapi.com/contacts/v1/contact/vid/7848874/profile?hapikey=demo + uri: https://api.hubapi.com/contacts/v1/contact/vid/8124374/profile?hapikey=demo body: encoding: UTF-8 string: '{"properties":[{"property":"firstname","value":"Steve"},{"property":"lastname","value":"Cunningham"}]}' @@ -60,21 +60,21 @@ http_interactions: message: No Content headers: Date: - - Tue, 10 Jul 2018 15:42:25 GMT + - Mon, 23 Jul 2018 13:55:59 GMT Content-Type: - application/json;charset=utf-8 Connection: - keep-alive Set-Cookie: - - __cfduid=dd0d031184aca632ec9e1d786fd609b7c1531237345; expires=Wed, 10-Jul-19 - 15:42:25 GMT; path=/; domain=.hubapi.com; HttpOnly + - __cfduid=d2303a20533ba6585cb4ca389410df8b31532354159; expires=Tue, 23-Jul-19 + 13:55:59 GMT; path=/; domain=.hubapi.com; HttpOnly Access-Control-Allow-Credentials: - 'false' Vary: - Accept-Encoding - Accept-Encoding X-Trace: - - 2B10F8E44DF662317877AF71D36CA7919095DFDFE2000000000000000000 + - 2BCC561BFB0BF02A2335D6C6D6AACBD70784061C80000000000000000000 Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload Expect-Ct: @@ -82,15 +82,15 @@ http_interactions: Server: - cloudflare Cf-Ray: - - 438423de5f54b783-CDG + - 43eea5da6b303bff-CDG body: encoding: UTF-8 string: '' http_version: - recorded_at: Tue, 10 Jul 2018 15:42:25 GMT + recorded_at: Mon, 23 Jul 2018 13:55:59 GMT - request: method: get - uri: https://api.hubapi.com/contacts/v1/contact/vid/7848874/profile?hapikey=demo + uri: https://api.hubapi.com/contacts/v1/contact/vid/8124374/profile?hapikey=demo body: encoding: US-ASCII string: '' @@ -107,23 +107,23 @@ http_interactions: message: OK headers: Date: - - Tue, 10 Jul 2018 15:42:25 GMT + - Mon, 23 Jul 2018 13:56:00 GMT Content-Type: - application/json;charset=utf-8 Content-Length: - - '734' + - '736' Connection: - keep-alive Set-Cookie: - - __cfduid=d0fac1665594a41ed6a7ac6836d591b821531237345; expires=Wed, 10-Jul-19 - 15:42:25 GMT; path=/; domain=.hubapi.com; HttpOnly + - __cfduid=d48d8bd5ce085cde34d7561a8280ac7a31532354159; expires=Tue, 23-Jul-19 + 13:55:59 GMT; path=/; domain=.hubapi.com; HttpOnly Access-Control-Allow-Credentials: - 'false' Vary: - Accept-Encoding - Accept-Encoding X-Trace: - - 2BAC62A6E795557215A2F4AFB9DA0D32C83AF2C6B5000000000000000000 + - 2B0E1780950F90A463F86991DE1E557AEC1561A670000000000000000000 Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload Expect-Ct: @@ -131,10 +131,57 @@ http_interactions: Server: - cloudflare Cf-Ray: - - 438423e04844a851-CDG + - 43eea5dbb8c13c53-CDG body: encoding: ASCII-8BIT - string: '{"vid":7848874,"canonical-vid":7848874,"merged-vids":[],"portal-id":62515,"is-contact":true,"profile-token":"AO_T-mMgKXM4ti6G8QXPqphGkDl6DoS6KGP5Va9YoPSix2it7uDvF0tbHx7uF20Z_iFdsX_wfArsS73Db5tY9eNeD3YXxZ2ADTegglgAtrUDoEa2D55qzwpglGfd94xtJKwKlIIjigDu","profile-url":"https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mMgKXM4ti6G8QXPqphGkDl6DoS6KGP5Va9YoPSix2it7uDvF0tbHx7uF20Z_iFdsX_wfArsS73Db5tY9eNeD3YXxZ2ADTegglgAtrUDoEa2D55qzwpglGfd94xtJKwKlIIjigDu/","properties":{"firstname":{"value":"Steve","versions":[{"value":"Steve","source-type":"API","source-id":null,"source-label":null,"timestamp":1531237345100,"selected":false}]},"num_conversion_events":{"value":"0","versions":[{"value":"0","source-type":"CALCULATED","source-id":null,"source-label":null,"timestamp":0,"selected":false}]},"lastmodifieddate":{"value":"1531237345116","versions":[{"value":"1531237345116","source-type":"CALCULATED","source-id":null,"source-label":null,"timestamp":1531237345116,"selected":false}]},"num_unique_conversion_events":{"value":"0","versions":[{"value":"0","source-type":"CALCULATED","source-id":null,"source-label":null,"timestamp":0,"selected":false}]},"hs_email_domain":{"value":"hsgem.com","versions":[{"value":"hsgem.com","source-type":"CALCULATED","source-id":null,"source-label":null,"timestamp":0,"selected":false}]},"createdate":{"value":"1531237344673","versions":[{"value":"1531237344673","source-type":"API","source-id":null,"source-label":null,"timestamp":1531237344673,"selected":false}]},"hs_lifecyclestage_subscriber_date":{"value":"1531237344673","versions":[{"value":"1531237344673","source-type":"API","source-id":null,"source-label":null,"timestamp":1531237344673,"selected":false}]},"lifecyclestage":{"value":"subscriber","versions":[{"value":"subscriber","source-type":"API","source-id":null,"source-label":null,"timestamp":1531237344673,"selected":false}]},"email":{"value":"update_class_contact_1531237344@hsgem.com","versions":[{"value":"update_class_contact_1531237344@hsgem.com","source-type":"API","source-id":null,"source-label":null,"timestamp":1531237344673,"selected":false}]},"lastname":{"value":"Cunningham","versions":[{"value":"Cunningham","source-type":"API","source-id":null,"source-label":null,"timestamp":1531237345100,"selected":false}]}},"form-submissions":[],"list-memberships":[],"identity-profiles":[{"vid":7848874,"saved-at-timestamp":1531237344683,"deleted-changed-timestamp":0,"identities":[{"type":"EMAIL","value":"update_class_contact_1531237344@hsgem.com","timestamp":1531237344673,"is-primary":true},{"type":"LEAD_GUID","value":"96bbfeb3-a976-4c88-a37e-38b02300efc5","timestamp":1531237344679}]}],"merge-audits":[]}' + string: '{"vid":8124374,"canonical-vid":8124374,"merged-vids":[],"portal-id":62515,"is-contact":true,"profile-token":"AO_T-mP8iKCl7Jwm5mx9Ds_E_zRnd1qE-s03PN76ne2PQQqPxWr9AvRFPn9-LX6jHN1GlVCalPnG1dWjOof9qRJtuglJ9usO5EI2zkQloSG8phJZKw9eiUcRgCOF9wo4i-XIU5zuNtpd","profile-url":"https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mP8iKCl7Jwm5mx9Ds_E_zRnd1qE-s03PN76ne2PQQqPxWr9AvRFPn9-LX6jHN1GlVCalPnG1dWjOof9qRJtuglJ9usO5EI2zkQloSG8phJZKw9eiUcRgCOF9wo4i-XIU5zuNtpd/","properties":{"firstname":{"value":"Steve","versions":[{"value":"Steve","source-type":"API","source-id":null,"source-label":null,"timestamp":1532354159820,"selected":false}]},"num_conversion_events":{"value":"0","versions":[{"value":"0","source-type":"CALCULATED","source-id":null,"source-label":null,"timestamp":0,"selected":false}]},"lastmodifieddate":{"value":"1532354159832","versions":[{"value":"1532354159832","source-type":"CALCULATED","source-id":null,"source-label":null,"timestamp":1532354159832,"selected":false}]},"num_unique_conversion_events":{"value":"0","versions":[{"value":"0","source-type":"CALCULATED","source-id":null,"source-label":null,"timestamp":0,"selected":false}]},"hs_email_domain":{"value":"hsgem.com","versions":[{"value":"hsgem.com","source-type":"CALCULATED","source-id":null,"source-label":null,"timestamp":0,"selected":false}]},"createdate":{"value":"1532354159434","versions":[{"value":"1532354159434","source-type":"API","source-id":null,"source-label":null,"timestamp":1532354159434,"selected":false}]},"hs_lifecyclestage_subscriber_date":{"value":"1532354159434","versions":[{"value":"1532354159434","source-type":"API","source-id":null,"source-label":null,"timestamp":1532354159434,"selected":false}]},"lifecyclestage":{"value":"subscriber","versions":[{"value":"subscriber","source-type":"API","source-id":null,"source-label":null,"timestamp":1532354159434,"selected":false}]},"email":{"value":"update_class_contact_1532354159@hsgem.com","versions":[{"value":"update_class_contact_1532354159@hsgem.com","source-type":"API","source-id":null,"source-label":null,"timestamp":1532354159434,"selected":false}]},"lastname":{"value":"Cunningham","versions":[{"value":"Cunningham","source-type":"API","source-id":null,"source-label":null,"timestamp":1532354159820,"selected":false}]}},"form-submissions":[],"list-memberships":[],"identity-profiles":[{"vid":8124374,"saved-at-timestamp":1532354159445,"deleted-changed-timestamp":0,"identities":[{"type":"EMAIL","value":"update_class_contact_1532354159@hsgem.com","timestamp":1532354159434,"is-primary":true},{"type":"LEAD_GUID","value":"aa7263b2-352b-4d95-afcc-39dce7fcf201","timestamp":1532354159442}]}],"merge-audits":[]}' http_version: - recorded_at: Tue, 10 Jul 2018 15:42:25 GMT + recorded_at: Mon, 23 Jul 2018 13:56:00 GMT +- request: + method: post + uri: https://api.hubapi.com/contacts/v1/contact/vid/1/profile?hapikey=demo + body: + encoding: UTF-8 + string: '{"properties":[{"property":"firstname","value":"Steve"},{"property":"lastname","value":"Cunningham"}]}' + headers: + Content-Type: + - application/json + response: + status: + code: 404 + message: Not Found + headers: + Date: + - Mon, 23 Jul 2018 13:56:00 GMT + Content-Type: + - application/json;charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Set-Cookie: + - __cfduid=d1811dcb25473841396861452238785261532354160; expires=Tue, 23-Jul-19 + 13:56:00 GMT; path=/; domain=.hubapi.com; HttpOnly + Access-Control-Allow-Credentials: + - 'false' + Vary: + - Accept-Encoding + - Accept-Encoding + X-Hubspot-Notfound: + - 'true' + X-Trace: + - 2B5D8F09278E96C98C9EABCEBFDF199737601647DE000000000000000000 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; preload + Expect-Ct: + - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" + Server: + - cloudflare + Cf-Ray: + - 43eea5dd4a96a8b1-CDG + body: + encoding: UTF-8 + string: '{"status":"error","message":"resource not found","correlationId":"9db71737-fc89-4160-805b-dec525acef5f","requestId":"ca4e3486d72fa1cd6d868eac95aa0139"}' + http_version: + recorded_at: Mon, 23 Jul 2018 13:56:00 GMT recorded_with: VCR 4.0.0 diff --git a/spec/fixtures/vcr_cassettes/contact_update_instance.yml b/spec/fixtures/vcr_cassettes/contact_update_instance.yml index 4f94b790..71bea2ec 100644 --- a/spec/fixtures/vcr_cassettes/contact_update_instance.yml +++ b/spec/fixtures/vcr_cassettes/contact_update_instance.yml @@ -5,7 +5,7 @@ http_interactions: uri: https://api.hubapi.com/contacts/v1/contact?hapikey=demo body: encoding: UTF-8 - string: '{"properties":[{"property":"email","value":"update_instance_contact_1531237345@hsgem.com"}]}' + string: '{"properties":[{"property":"email","value":"update_instance_contact_1532354160@hsgem.com"}]}' headers: Content-Type: - application/json @@ -15,7 +15,7 @@ http_interactions: message: OK headers: Date: - - Tue, 10 Jul 2018 15:42:25 GMT + - Mon, 23 Jul 2018 13:56:00 GMT Content-Type: - application/json;charset=utf-8 Transfer-Encoding: @@ -23,15 +23,15 @@ http_interactions: Connection: - keep-alive Set-Cookie: - - __cfduid=d2c920795a91a3d8e2ae9b84628411d261531237345; expires=Wed, 10-Jul-19 - 15:42:25 GMT; path=/; domain=.hubapi.com; HttpOnly + - __cfduid=dcf64f4d134b8f2015a3c25e797053e771532354160; expires=Tue, 23-Jul-19 + 13:56:00 GMT; path=/; domain=.hubapi.com; HttpOnly Access-Control-Allow-Credentials: - 'false' Vary: - Accept-Encoding - Accept-Encoding X-Trace: - - 2B21CE940DADB229F782C79B6A79C3609C3E1B3942000000000000000000 + - 2B6D52AA1879D04C84D4D2DB851A4611E073AF19F8000000000000000000 Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload Expect-Ct: @@ -39,15 +39,15 @@ http_interactions: Server: - cloudflare Cf-Ray: - - 438423e19f71a863-CDG + - 43eea5de4d39b78f-CDG body: encoding: UTF-8 - string: '{"vid":7848924,"canonical-vid":7848924,"merged-vids":[],"portal-id":62515,"is-contact":true,"profile-token":"AO_T-mNAYFwNMo8FWEK-aihhXJIdWrDtTOz-nwbwPL-wMujK8khEJ0VXx30gLRv2fq4n3xw2Gqsek_Mm6FsJ6I5jkLELZvKrnyaE84J7q_W3CdLMZqfQ3o5fIYnRdfEbEYnisxwiVdU4","profile-url":"https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mNAYFwNMo8FWEK-aihhXJIdWrDtTOz-nwbwPL-wMujK8khEJ0VXx30gLRv2fq4n3xw2Gqsek_Mm6FsJ6I5jkLELZvKrnyaE84J7q_W3CdLMZqfQ3o5fIYnRdfEbEYnisxwiVdU4/","properties":{"email":{"value":"update_instance_contact_1531237345@hsgem.com","versions":[{"value":"update_instance_contact_1531237345@hsgem.com","source-type":"API","source-id":null,"source-label":null,"timestamp":1531237345617,"selected":false}]}},"form-submissions":[],"list-memberships":[],"identity-profiles":[{"vid":7848924,"is-deleted":false,"is-contact":false,"pointer-vid":0,"previous-vid":0,"linked-vids":[],"saved-at-timestamp":0,"deleted-changed-timestamp":0,"identities":[{"type":"EMAIL","value":"update_instance_contact_1531237345@hsgem.com","timestamp":1531237345622,"is-primary":true,"source":"UNSPECIFIED"},{"type":"LEAD_GUID","value":"983c053e-6664-4e96-bc59-3aa75ddd3e1d","timestamp":1531237345629,"source":"UNSPECIFIED"}]}],"merge-audits":[]}' + string: '{"vid":8124424,"canonical-vid":8124424,"merged-vids":[],"portal-id":62515,"is-contact":true,"profile-token":"AO_T-mOIaDVgcSzryZmBfyplKcFUJLOorcXAByH3tJd_fEfFeSP9Xk1fDL1sO7fvIb9n9GFDSes7a8QOFKPVL932mJ5Y623jLyR4LCxyin2rhcTDHjwffQFmDNgbSdzGIPPti4qLciBr","profile-url":"https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mOIaDVgcSzryZmBfyplKcFUJLOorcXAByH3tJd_fEfFeSP9Xk1fDL1sO7fvIb9n9GFDSes7a8QOFKPVL932mJ5Y623jLyR4LCxyin2rhcTDHjwffQFmDNgbSdzGIPPti4qLciBr/","properties":{"email":{"value":"update_instance_contact_1532354160@hsgem.com","versions":[{"value":"update_instance_contact_1532354160@hsgem.com","source-type":"API","source-id":null,"source-label":null,"timestamp":1532354160512,"selected":false}]}},"form-submissions":[],"list-memberships":[],"identity-profiles":[{"vid":8124424,"is-deleted":false,"is-contact":false,"pointer-vid":0,"previous-vid":0,"linked-vids":[],"saved-at-timestamp":0,"deleted-changed-timestamp":0,"identities":[{"type":"EMAIL","value":"update_instance_contact_1532354160@hsgem.com","timestamp":1532354160515,"is-primary":true,"source":"UNSPECIFIED"},{"type":"LEAD_GUID","value":"345340cf-8ca4-4ece-a86b-fa32f61db4e0","timestamp":1532354160525,"source":"UNSPECIFIED"}]}],"merge-audits":[]}' http_version: - recorded_at: Tue, 10 Jul 2018 15:42:25 GMT + recorded_at: Mon, 23 Jul 2018 13:56:00 GMT - request: method: post - uri: https://api.hubapi.com/contacts/v1/contact/vid/7848924/profile?hapikey=demo + uri: https://api.hubapi.com/contacts/v1/contact/vid/8124424/profile?hapikey=demo body: encoding: UTF-8 string: '{"properties":[{"property":"firstname","value":"Steve"},{"property":"lastname","value":"Cunningham"}]}' @@ -60,21 +60,21 @@ http_interactions: message: No Content headers: Date: - - Tue, 10 Jul 2018 15:42:26 GMT + - Mon, 23 Jul 2018 13:56:01 GMT Content-Type: - application/json;charset=utf-8 Connection: - keep-alive Set-Cookie: - - __cfduid=da802802f59909e2066495040c661e5bf1531237346; expires=Wed, 10-Jul-19 - 15:42:26 GMT; path=/; domain=.hubapi.com; HttpOnly + - __cfduid=dbfe31dc848ae556041b911fe4920053b1532354160; expires=Tue, 23-Jul-19 + 13:56:00 GMT; path=/; domain=.hubapi.com; HttpOnly Access-Control-Allow-Credentials: - 'false' Vary: - Accept-Encoding - Accept-Encoding X-Trace: - - 2B958C061593117906354DB08FB81885A359A6F8F5000000000000000000 + - 2BFCB8B9612FD84F45A4533E07CC4124225D90721D000000000000000000 Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload Expect-Ct: @@ -82,10 +82,57 @@ http_interactions: Server: - cloudflare Cf-Ray: - - 438423e4ae99a89f-CDG + - 43eea5e0f87f3c1d-CDG body: encoding: UTF-8 string: '' http_version: - recorded_at: Tue, 10 Jul 2018 15:42:26 GMT + recorded_at: Mon, 23 Jul 2018 13:56:01 GMT +- request: + method: post + uri: https://api.hubapi.com/contacts/v1/contact/vid/1/profile?hapikey=demo + body: + encoding: UTF-8 + string: '{"properties":[{"property":"firstname","value":"Steve"},{"property":"lastname","value":"Cunningham"}]}' + headers: + Content-Type: + - application/json + response: + status: + code: 404 + message: Not Found + headers: + Date: + - Mon, 23 Jul 2018 13:56:01 GMT + Content-Type: + - application/json;charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Set-Cookie: + - __cfduid=d5c72d6487d6a1cdcf8faab3e760532411532354161; expires=Tue, 23-Jul-19 + 13:56:01 GMT; path=/; domain=.hubapi.com; HttpOnly + Access-Control-Allow-Credentials: + - 'false' + Vary: + - Accept-Encoding + - Accept-Encoding + X-Hubspot-Notfound: + - 'true' + X-Trace: + - 2B9F8209A2BE107004DFED4F6B39AA8B37BA8EC215000000000000000000 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; preload + Expect-Ct: + - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" + Server: + - cloudflare + Cf-Ray: + - 43eea5e2db8a3c2f-CDG + body: + encoding: UTF-8 + string: '{"status":"error","message":"resource not found","correlationId":"1863ffb1-8da0-4628-8f39-35dd30016a0c","requestId":"d5e81f44d0636d46f8391af201e59872"}' + http_version: + recorded_at: Mon, 23 Jul 2018 13:56:01 GMT recorded_with: VCR 4.0.0 diff --git a/spec/fixtures/vcr_cassettes/deal_update_class.yml b/spec/fixtures/vcr_cassettes/deal_update_class.yml index c58e7d91..693abcc3 100644 --- a/spec/fixtures/vcr_cassettes/deal_update_class.yml +++ b/spec/fixtures/vcr_cassettes/deal_update_class.yml @@ -15,7 +15,7 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Jul 2018 08:30:03 GMT + - Mon, 23 Jul 2018 14:01:06 GMT Content-Type: - application/json;charset=utf-8 Content-Length: @@ -23,12 +23,12 @@ http_interactions: Connection: - keep-alive Set-Cookie: - - __cfduid=dc4d9b3722fd49f63d864e991097e2b571531297803; expires=Thu, 11-Jul-19 - 08:30:03 GMT; path=/; domain=.hubapi.com; HttpOnly + - __cfduid=d55db57692991c9a4831db0e02c91af2a1532354466; expires=Tue, 23-Jul-19 + 14:01:06 GMT; path=/; domain=.hubapi.com; HttpOnly Access-Control-Allow-Credentials: - 'false' X-Trace: - - 2B6AA6CE006F4D529396E7835723FF59CEC75FB0B8000000000000000000 + - 2B4AF225A202A3389D38BE025C9BA3B97470D879D4000000000000000000 Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload Expect-Ct: @@ -36,15 +36,15 @@ http_interactions: Server: - cloudflare Cf-Ray: - - 4389e7e72c4ea881-CDG + - 43eead574f5da8db-CDG body: encoding: UTF-8 - string: '{"portalId":62515,"dealId":319502377,"isDeleted":false,"associations":{"associatedVids":[],"associatedCompanyIds":[],"associatedDealIds":[]},"properties":{"hs_lastmodifieddate":{"value":"1531297803459","timestamp":1531297803459,"source":"CALCULATED","sourceId":null,"versions":[{"name":"hs_lastmodifieddate","value":"1531297803459","timestamp":1531297803459,"source":"CALCULATED","sourceVid":[]}]},"hs_createdate":{"value":"1531297803459","timestamp":1531297803459,"source":"API","sourceId":null,"versions":[{"name":"hs_createdate","value":"1531297803459","timestamp":1531297803459,"source":"API","sourceVid":[]}]},"createdate":{"value":"1531297803459","timestamp":1531297803459,"source":"API","sourceId":null,"versions":[{"name":"createdate","value":"1531297803459","timestamp":1531297803459,"source":"API","sourceVid":[]}]}},"imports":[],"stateChanges":[]}' + string: '{"portalId":62515,"dealId":325444455,"isDeleted":false,"associations":{"associatedVids":[],"associatedCompanyIds":[],"associatedDealIds":[]},"properties":{"hs_lastmodifieddate":{"value":"1532354466560","timestamp":1532354466560,"source":"CALCULATED","sourceId":null,"versions":[{"name":"hs_lastmodifieddate","value":"1532354466560","timestamp":1532354466560,"source":"CALCULATED","sourceVid":[]}]},"hs_createdate":{"value":"1532354466560","timestamp":1532354466560,"source":"API","sourceId":null,"versions":[{"name":"hs_createdate","value":"1532354466560","timestamp":1532354466560,"source":"API","sourceVid":[]}]},"createdate":{"value":"1532354466560","timestamp":1532354466560,"source":"API","sourceId":null,"versions":[{"name":"createdate","value":"1532354466560","timestamp":1532354466560,"source":"API","sourceVid":[]}]}},"imports":[],"stateChanges":[]}' http_version: - recorded_at: Wed, 11 Jul 2018 08:30:03 GMT + recorded_at: Mon, 23 Jul 2018 14:01:06 GMT - request: method: put - uri: https://api.hubapi.com/deals/v1/deal/319502377?hapikey=demo + uri: https://api.hubapi.com/deals/v1/deal/325444455?hapikey=demo body: encoding: UTF-8 string: '{"properties":[{"name":"dealname","value":"Acme Flask"}]}' @@ -57,7 +57,7 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Jul 2018 08:30:04 GMT + - Mon, 23 Jul 2018 14:01:06 GMT Content-Type: - application/json;charset=utf-8 Content-Length: @@ -65,12 +65,12 @@ http_interactions: Connection: - keep-alive Set-Cookie: - - __cfduid=dfd487e8f2c9a0b510bf27611fc5ea5751531297803; expires=Thu, 11-Jul-19 - 08:30:03 GMT; path=/; domain=.hubapi.com; HttpOnly + - __cfduid=dcf7fda7a341cdbbced64d53f1eb06f5c1532354466; expires=Tue, 23-Jul-19 + 14:01:06 GMT; path=/; domain=.hubapi.com; HttpOnly Access-Control-Allow-Credentials: - 'false' X-Trace: - - 2BD55515F19F042464854029B5C82A74E7AF79FD1C000000000000000000 + - 2B6AB4327AA23FA27DC3196F31F079C0D1FDCB7CFA000000000000000000 Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload Expect-Ct: @@ -78,17 +78,17 @@ http_interactions: Server: - cloudflare Cf-Ray: - - 4389e7e8ad5fb77d-CDG + - 43eead58bb32bd65-CDG body: encoding: UTF-8 - string: '{"portalId":62515,"dealId":319502377,"isDeleted":false,"associations":{"associatedVids":[],"associatedCompanyIds":[],"associatedDealIds":[]},"properties":{"dealname":{"value":"Acme - Flask","timestamp":1531297803936,"source":"API","sourceId":null,"versions":[{"name":"dealname","value":"Acme - Flask","timestamp":1531297803936,"source":"API","sourceVid":[]}]},"hs_lastmodifieddate":{"value":"1531297803936","timestamp":1531297803936,"source":"CALCULATED","sourceId":null,"versions":[{"name":"hs_lastmodifieddate","value":"1531297803936","timestamp":1531297803936,"source":"CALCULATED","sourceVid":[]},{"name":"hs_lastmodifieddate","value":"1531297803459","timestamp":1531297803459,"source":"CALCULATED","sourceVid":[]}]},"num_associated_contacts":{"value":"0","timestamp":0,"source":"CALCULATED","sourceId":null,"versions":[{"name":"num_associated_contacts","value":"0","source":"CALCULATED","sourceVid":[]}]},"hs_createdate":{"value":"1531297803459","timestamp":1531297803459,"source":"API","sourceId":null,"versions":[{"name":"hs_createdate","value":"1531297803459","timestamp":1531297803459,"source":"API","sourceVid":[]}]},"createdate":{"value":"1531297803459","timestamp":1531297803459,"source":"API","sourceId":null,"versions":[{"name":"createdate","value":"1531297803459","timestamp":1531297803459,"source":"API","sourceVid":[]}]}},"imports":[],"stateChanges":[]}' + string: '{"portalId":62515,"dealId":325444455,"isDeleted":false,"associations":{"associatedVids":[],"associatedCompanyIds":[],"associatedDealIds":[]},"properties":{"dealname":{"value":"Acme + Flask","timestamp":1532354466804,"source":"API","sourceId":null,"versions":[{"name":"dealname","value":"Acme + Flask","timestamp":1532354466804,"source":"API","sourceVid":[]}]},"hs_lastmodifieddate":{"value":"1532354466804","timestamp":1532354466804,"source":"CALCULATED","sourceId":null,"versions":[{"name":"hs_lastmodifieddate","value":"1532354466804","timestamp":1532354466804,"source":"CALCULATED","sourceVid":[]},{"name":"hs_lastmodifieddate","value":"1532354466560","timestamp":1532354466560,"source":"CALCULATED","sourceVid":[]}]},"num_associated_contacts":{"value":"0","timestamp":0,"source":"CALCULATED","sourceId":null,"versions":[{"name":"num_associated_contacts","value":"0","source":"CALCULATED","sourceVid":[]}]},"hs_createdate":{"value":"1532354466560","timestamp":1532354466560,"source":"API","sourceId":null,"versions":[{"name":"hs_createdate","value":"1532354466560","timestamp":1532354466560,"source":"API","sourceVid":[]}]},"createdate":{"value":"1532354466560","timestamp":1532354466560,"source":"API","sourceId":null,"versions":[{"name":"createdate","value":"1532354466560","timestamp":1532354466560,"source":"API","sourceVid":[]}]}},"imports":[],"stateChanges":[]}' http_version: - recorded_at: Wed, 11 Jul 2018 08:30:04 GMT + recorded_at: Mon, 23 Jul 2018 14:01:06 GMT - request: method: put - uri: https://api.hubapi.com/deals/v1/deal/invalid?hapikey=demo + uri: https://api.hubapi.com/deals/v1/deal/1?hapikey=demo body: encoding: UTF-8 string: '{"properties":[{"name":"dealname","value":"Acme Flask"}]}' @@ -97,22 +97,26 @@ http_interactions: - application/json response: status: - code: 200 - message: OK + code: 404 + message: Not Found headers: Date: - - Wed, 11 Jul 2018 08:30:04 GMT + - Mon, 23 Jul 2018 14:01:07 GMT + Content-Type: + - application/json;charset=utf-8 Content-Length: - - '0' + - '174' Connection: - keep-alive Set-Cookie: - - __cfduid=d51b18f1bca6323b4b41b6907508618f21531297804; expires=Thu, 11-Jul-19 - 08:30:04 GMT; path=/; domain=.hubapi.com; HttpOnly + - __cfduid=d037eaba9e8d965d16ab2f38d35d2963f1532354466; expires=Tue, 23-Jul-19 + 14:01:06 GMT; path=/; domain=.hubapi.com; HttpOnly Access-Control-Allow-Credentials: - 'false' + X-Hubspot-Notfound: + - 'true' X-Trace: - - 2B8307A65842D9F0CE7A284F149A4D8B75FF1931B5000000000000000000 + - 2BB820995C51F157788C2D5F308F35657CAD76F36C000000000000000000 Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload Expect-Ct: @@ -120,10 +124,10 @@ http_interactions: Server: - cloudflare Cf-Ray: - - 4389e7ebaf7fbd6f-CDG + - 43eead5a6ae86968-CDG body: encoding: UTF-8 - string: '' + string: '{"status":"error","message":"No deal found for dealId=1 portalId=62515","correlationId":"6441c70d-e3bf-4c4c-9424-e7bc3f40779b","requestId":"b103371cc88b771356fc327bb9f27fd6"}' http_version: - recorded_at: Wed, 11 Jul 2018 08:30:04 GMT + recorded_at: Mon, 23 Jul 2018 14:01:07 GMT recorded_with: VCR 4.0.0 diff --git a/spec/fixtures/vcr_cassettes/deal_update_instance.yml b/spec/fixtures/vcr_cassettes/deal_update_instance.yml index 1e0e95e4..b7acb306 100644 --- a/spec/fixtures/vcr_cassettes/deal_update_instance.yml +++ b/spec/fixtures/vcr_cassettes/deal_update_instance.yml @@ -15,7 +15,7 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Jul 2018 08:30:04 GMT + - Mon, 23 Jul 2018 14:01:07 GMT Content-Type: - application/json;charset=utf-8 Content-Length: @@ -23,12 +23,12 @@ http_interactions: Connection: - keep-alive Set-Cookie: - - __cfduid=d3118908e52abe9eb6288579ced0e1bd21531297804; expires=Thu, 11-Jul-19 - 08:30:04 GMT; path=/; domain=.hubapi.com; HttpOnly + - __cfduid=dfa1c9adc118515f3942a42b9c63d68b41532354467; expires=Tue, 23-Jul-19 + 14:01:07 GMT; path=/; domain=.hubapi.com; HttpOnly Access-Control-Allow-Credentials: - 'false' X-Trace: - - 2BBF6883F535DF8D1B79F96DC77B569335B8D8DE34000000000000000000 + - 2B9AB51FF7A8162724246FA71D98CD9C3538B0AFE0000000000000000000 Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload Expect-Ct: @@ -36,15 +36,15 @@ http_interactions: Server: - cloudflare Cf-Ray: - - 4389e7ed0f32bd79-CDG + - 43eead5bce5868ae-CDG body: encoding: UTF-8 - string: '{"portalId":62515,"dealId":319502350,"isDeleted":false,"associations":{"associatedVids":[],"associatedCompanyIds":[],"associatedDealIds":[]},"properties":{"hs_lastmodifieddate":{"value":"1531297804400","timestamp":1531297804400,"source":"CALCULATED","sourceId":null,"versions":[{"name":"hs_lastmodifieddate","value":"1531297804400","timestamp":1531297804400,"source":"CALCULATED","sourceVid":[]}]},"hs_createdate":{"value":"1531297804400","timestamp":1531297804400,"source":"API","sourceId":null,"versions":[{"name":"hs_createdate","value":"1531297804400","timestamp":1531297804400,"source":"API","sourceVid":[]}]},"createdate":{"value":"1531297804400","timestamp":1531297804400,"source":"API","sourceId":null,"versions":[{"name":"createdate","value":"1531297804400","timestamp":1531297804400,"source":"API","sourceVid":[]}]}},"imports":[],"stateChanges":[]}' + string: '{"portalId":62515,"dealId":325398711,"isDeleted":false,"associations":{"associatedVids":[],"associatedCompanyIds":[],"associatedDealIds":[]},"properties":{"hs_lastmodifieddate":{"value":"1532354467246","timestamp":1532354467246,"source":"CALCULATED","sourceId":null,"versions":[{"name":"hs_lastmodifieddate","value":"1532354467246","timestamp":1532354467246,"source":"CALCULATED","sourceVid":[]}]},"hs_createdate":{"value":"1532354467246","timestamp":1532354467246,"source":"API","sourceId":null,"versions":[{"name":"hs_createdate","value":"1532354467246","timestamp":1532354467246,"source":"API","sourceVid":[]}]},"createdate":{"value":"1532354467246","timestamp":1532354467246,"source":"API","sourceId":null,"versions":[{"name":"createdate","value":"1532354467246","timestamp":1532354467246,"source":"API","sourceVid":[]}]}},"imports":[],"stateChanges":[]}' http_version: - recorded_at: Wed, 11 Jul 2018 08:30:04 GMT + recorded_at: Mon, 23 Jul 2018 14:01:07 GMT - request: method: put - uri: https://api.hubapi.com/deals/v1/deal/319502350?hapikey=demo + uri: https://api.hubapi.com/deals/v1/deal/325398711?hapikey=demo body: encoding: UTF-8 string: '{"properties":[{"name":"dealname","value":"Acme Cogs"}]}' @@ -57,7 +57,7 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Jul 2018 08:30:04 GMT + - Mon, 23 Jul 2018 14:01:07 GMT Content-Type: - application/json;charset=utf-8 Content-Length: @@ -65,12 +65,12 @@ http_interactions: Connection: - keep-alive Set-Cookie: - - __cfduid=dbd4dbb2bedebc7c8530cbcd82433ce211531297804; expires=Thu, 11-Jul-19 - 08:30:04 GMT; path=/; domain=.hubapi.com; HttpOnly + - __cfduid=def32cfc0ac7d775fa6e0c55073205e471532354467; expires=Tue, 23-Jul-19 + 14:01:07 GMT; path=/; domain=.hubapi.com; HttpOnly Access-Control-Allow-Credentials: - 'false' X-Trace: - - 2B9F39D53C23654243C95E3B4C6636594F6460F549000000000000000000 + - 2B6BAC6387F4376B55823ABCA4DEB225538F440D54000000000000000000 Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload Expect-Ct: @@ -78,12 +78,56 @@ http_interactions: Server: - cloudflare Cf-Ray: - - 4389e7ee7cc2b7b9-CDG + - 43eead5d2f5169ac-CDG body: encoding: UTF-8 - string: '{"portalId":62515,"dealId":319502350,"isDeleted":false,"associations":{"associatedVids":[],"associatedCompanyIds":[],"associatedDealIds":[]},"properties":{"dealname":{"value":"Acme - Cogs","timestamp":1531297804856,"source":"API","sourceId":null,"versions":[{"name":"dealname","value":"Acme - Cogs","timestamp":1531297804856,"source":"API","sourceVid":[]}]},"hs_lastmodifieddate":{"value":"1531297804856","timestamp":1531297804856,"source":"CALCULATED","sourceId":null,"versions":[{"name":"hs_lastmodifieddate","value":"1531297804856","timestamp":1531297804856,"source":"CALCULATED","sourceVid":[]},{"name":"hs_lastmodifieddate","value":"1531297804400","timestamp":1531297804400,"source":"CALCULATED","sourceVid":[]}]},"num_associated_contacts":{"value":"0","timestamp":0,"source":"CALCULATED","sourceId":null,"versions":[{"name":"num_associated_contacts","value":"0","source":"CALCULATED","sourceVid":[]}]},"hs_createdate":{"value":"1531297804400","timestamp":1531297804400,"source":"API","sourceId":null,"versions":[{"name":"hs_createdate","value":"1531297804400","timestamp":1531297804400,"source":"API","sourceVid":[]}]},"createdate":{"value":"1531297804400","timestamp":1531297804400,"source":"API","sourceId":null,"versions":[{"name":"createdate","value":"1531297804400","timestamp":1531297804400,"source":"API","sourceVid":[]}]}},"imports":[],"stateChanges":[]}' + string: '{"portalId":62515,"dealId":325398711,"isDeleted":false,"associations":{"associatedVids":[],"associatedCompanyIds":[],"associatedDealIds":[]},"properties":{"dealname":{"value":"Acme + Cogs","timestamp":1532354467460,"source":"API","sourceId":null,"versions":[{"name":"dealname","value":"Acme + Cogs","timestamp":1532354467460,"source":"API","sourceVid":[]}]},"hs_lastmodifieddate":{"value":"1532354467460","timestamp":1532354467460,"source":"CALCULATED","sourceId":null,"versions":[{"name":"hs_lastmodifieddate","value":"1532354467460","timestamp":1532354467460,"source":"CALCULATED","sourceVid":[]},{"name":"hs_lastmodifieddate","value":"1532354467246","timestamp":1532354467246,"source":"CALCULATED","sourceVid":[]}]},"num_associated_contacts":{"value":"0","timestamp":0,"source":"CALCULATED","sourceId":null,"versions":[{"name":"num_associated_contacts","value":"0","source":"CALCULATED","sourceVid":[]}]},"hs_createdate":{"value":"1532354467246","timestamp":1532354467246,"source":"API","sourceId":null,"versions":[{"name":"hs_createdate","value":"1532354467246","timestamp":1532354467246,"source":"API","sourceVid":[]}]},"createdate":{"value":"1532354467246","timestamp":1532354467246,"source":"API","sourceId":null,"versions":[{"name":"createdate","value":"1532354467246","timestamp":1532354467246,"source":"API","sourceVid":[]}]}},"imports":[],"stateChanges":[]}' http_version: - recorded_at: Wed, 11 Jul 2018 08:30:04 GMT + recorded_at: Mon, 23 Jul 2018 14:01:07 GMT +- request: + method: put + uri: https://api.hubapi.com/deals/v1/deal/1?hapikey=demo + body: + encoding: UTF-8 + string: '{"properties":[{"name":"dealname","value":"Acme Cogs"}]}' + headers: + Content-Type: + - application/json + response: + status: + code: 404 + message: Not Found + headers: + Date: + - Mon, 23 Jul 2018 14:01:08 GMT + Content-Type: + - application/json;charset=utf-8 + Content-Length: + - '174' + Connection: + - keep-alive + Set-Cookie: + - __cfduid=def32cfc0ac7d775fa6e0c55073205e471532354467; expires=Tue, 23-Jul-19 + 14:01:07 GMT; path=/; domain=.hubapi.com; HttpOnly + Access-Control-Allow-Credentials: + - 'false' + X-Hubspot-Notfound: + - 'true' + X-Trace: + - 2B22F2391720E2BE6F86B8E6D856AC51297E93BCD1000000000000000000 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; preload + Expect-Ct: + - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" + Server: + - cloudflare + Cf-Ray: + - 43eead5e883169ac-CDG + body: + encoding: UTF-8 + string: '{"status":"error","message":"No deal found for dealId=1 portalId=62515","correlationId":"0e09d3b2-d6eb-4d00-a897-49510e29ec1b","requestId":"191bb9f1ca021e018250127dbda00a87"}' + http_version: + recorded_at: Mon, 23 Jul 2018 14:01:08 GMT recorded_with: VCR 4.0.0 diff --git a/spec/lib/hubspot/contact_spec.rb b/spec/lib/hubspot/contact_spec.rb index e475b960..2d246a16 100644 --- a/spec/lib/hubspot/contact_spec.rb +++ b/spec/lib/hubspot/contact_spec.rb @@ -351,9 +351,10 @@ end context 'when the request is not successful' do + let(:vid_to_update) { 1 } + it 'raises an error' do - skip 'hubspot does not send a 404 anymore' - # https://github.com/adimichele/hubspot-ruby/issues/124 + expect{ subject }.to raise_error Hubspot::RequestError end end end @@ -369,9 +370,9 @@ its(['lastname']) { should == 'Cunningham' } context 'when the request is not successful' do + let(:contact) { Hubspot::Contact.new('vid' => 1, 'properties' => {}) } it 'raises an error' do - skip 'hubspot does not send a 404 anymore' - # https://github.com/adimichele/hubspot-ruby/issues/124 + expect { subject }.to raise_error Hubspot::RequestError end end end diff --git a/spec/lib/hubspot/deal_spec.rb b/spec/lib/hubspot/deal_spec.rb index 33d2f838..572e9bfd 100644 --- a/spec/lib/hubspot/deal_spec.rb +++ b/spec/lib/hubspot/deal_spec.rb @@ -94,9 +94,10 @@ end context 'when the request is not successful' do + let(:deal) { Hubspot::Deal.new('portalID' => portal_id, 'dealId' => 1, 'associations' => {}, 'properties' => {}) } + it 'raises an error' do - skip 'hubspot does not send a 404 anymore' - # https://github.com/adimichele/hubspot-ruby/issues/124 + expect { subject }.to raise_error Hubspot::RequestError end end end @@ -111,9 +112,10 @@ its(["dealname"]) { should == "Acme Cogs" } context 'when the request is not successful' do + let(:deal) { Hubspot::Deal.new('portalID' => portal_id, 'dealId' => 1, 'associations' => {}, 'properties' => {}) } + it 'raises an error' do - skip 'hubspot does not send a 404 anymore' - # https://github.com/adimichele/hubspot-ruby/issues/124 + expect { subject }.to raise_error Hubspot::RequestError end end end