intercom 3.9.2 → 3.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/changes.txt +6 -0
- data/lib/intercom/request.rb +1 -2
- data/lib/intercom/version.rb +1 -1
- data/spec/unit/intercom/client_spec.rb +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0796185b7bee83b7bde3a828c68cdd10710131ec2ab91ed977c05b7cb674e23
|
4
|
+
data.tar.gz: 8880d5f5b96fee495822e73fbd0576dfc53162ccc027c2ef6cdfecb1951ace42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a2e2c8b67e94e28fcd9726b0d136782bddf82c28ae92cd6c227dba0454a159b82fbc279bf2143de116fc73edadb064d9b84f617b4eba33f18a0d3976de02de1
|
7
|
+
data.tar.gz: 3d94e3d71711487740f371b4742adaafd9457ac0af19a66c3bb4a8b53e9a7b6da967d7418207ca5a02c5d6dbf664a759853b4ee17d9addc31165cf04a0c0d250
|
data/README.md
CHANGED
data/changes.txt
CHANGED
data/lib/intercom/request.rb
CHANGED
data/lib/intercom/version.rb
CHANGED
@@ -73,6 +73,16 @@ module Intercom
|
|
73
73
|
it 'raises on empty api version' do
|
74
74
|
proc { Client.new(app_id: app_id, api_key: api_key, api_version: '') }.must_raise MisconfiguredClientError
|
75
75
|
end
|
76
|
+
|
77
|
+
it "assigns works" do
|
78
|
+
stub_request(:any, "https://api.intercom.io/users?id=123").to_return(
|
79
|
+
status: [200, "OK"],
|
80
|
+
headers: { 'X-RateLimit-Reset' => Time.now.utc + 10 },
|
81
|
+
body: { "test": "testing" }.to_json
|
82
|
+
)
|
83
|
+
|
84
|
+
client.get("/users", { id: "123" })
|
85
|
+
end
|
76
86
|
end
|
77
87
|
|
78
88
|
describe 'OAuth clients' do
|