freeclimb 5.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -1
- data/Gemfile +2 -1
- data/Gemfile.lock +21 -15
- data/README.md +5 -4
- data/docs/MessageResult.md +7 -1
- data/docs/TFNCampaign.md +34 -0
- data/lib/freeclimb/configuration.rb +1 -2
- data/lib/freeclimb/models/dequeue.rb +2 -4
- data/lib/freeclimb/models/message_result.rb +36 -5
- data/lib/freeclimb/models/remove_from_conference.rb +2 -4
- data/lib/freeclimb/models/start_record_call.rb +2 -4
- data/lib/freeclimb/models/terminate_conference.rb +2 -4
- data/lib/freeclimb/models/tfn_campaign.rb +370 -0
- data/lib/freeclimb/models/unpark.rb +2 -4
- data/lib/freeclimb/version.rb +1 -1
- data/lib/freeclimb.rb +1 -0
- data/openapi.json +93 -38
- data/spec/api/default_api_spec.rb +39 -117
- data/spec/models/account_request_spec.rb +113 -2
- data/spec/models/account_result_spec.rb +591 -28
- data/spec/models/account_status_spec.rb +1 -0
- data/spec/models/account_type_spec.rb +1 -0
- data/spec/models/add_to_conference_notification_webhook_spec.rb +654 -5
- data/spec/models/add_to_conference_spec.rb +471 -2
- data/spec/models/add_to_queue_notification_webhook_spec.rb +465 -2
- data/spec/models/answered_by_spec.rb +1 -0
- data/spec/models/application_list_spec.rb +323 -2
- data/spec/models/application_request_spec.rb +393 -2
- data/spec/models/application_result_spec.rb +723 -14
- data/spec/models/available_number_list_spec.rb +323 -2
- data/spec/models/available_number_spec.rb +380 -21
- data/spec/models/barge_in_reason_spec.rb +1 -0
- data/spec/models/buy_incoming_number_request_spec.rb +169 -2
- data/spec/models/call_control_webhook_spec.rb +281 -2
- data/spec/models/call_direction_spec.rb +1 -0
- data/spec/models/call_ended_reason_spec.rb +1 -0
- data/spec/models/call_list_spec.rb +323 -2
- data/spec/models/call_result_spec.rb +1020 -9
- data/spec/models/call_status_spec.rb +1 -0
- data/spec/models/call_status_webhook_spec.rb +501 -2
- data/spec/models/capabilities_spec.rb +191 -2
- data/spec/models/completion_request_spec.rb +54 -2
- data/spec/models/completion_result_spec.rb +93 -2
- data/spec/models/completion_result_status_spec.rb +1 -0
- data/spec/models/conference_list_spec.rb +323 -2
- data/spec/models/conference_participant_list_spec.rb +323 -2
- data/spec/models/conference_participant_result_spec.rb +532 -7
- data/spec/models/conference_recording_status_webhook_spec.rb +654 -5
- data/spec/models/conference_result_spec.rb +768 -55
- data/spec/models/conference_status_spec.rb +1 -0
- data/spec/models/conference_status_webhook_spec.rb +654 -5
- data/spec/models/create_conference_request_spec.rb +243 -2
- data/spec/models/create_conference_spec.rb +281 -2
- data/spec/models/create_conference_webhook_spec.rb +654 -5
- data/spec/models/create_web_rtc_token_spec.rb +151 -2
- data/spec/models/dequeue_spec.rb +1 -0
- data/spec/models/dequeue_webhook_spec.rb +565 -8
- data/spec/models/enqueue_spec.rb +225 -2
- data/spec/models/filter_logs_request_spec.rb +57 -2
- data/spec/models/get_digits_reason_spec.rb +1 -0
- data/spec/models/get_digits_spec.rb +379 -2
- data/spec/models/get_digits_webhook_spec.rb +623 -12
- data/spec/models/get_speech_reason_spec.rb +1 -0
- data/spec/models/get_speech_spec.rb +556 -11
- data/spec/models/get_speech_webhook_spec.rb +870 -15
- data/spec/models/grammar_file_built_in_spec.rb +1 -0
- data/spec/models/grammar_type_spec.rb +1 -0
- data/spec/models/hangup_spec.rb +57 -2
- data/spec/models/if_machine_spec.rb +1 -0
- data/spec/models/inbound_call_webhook_spec.rb +521 -2
- data/spec/models/incoming_number_list_spec.rb +323 -2
- data/spec/models/incoming_number_request_spec.rb +169 -2
- data/spec/models/incoming_number_result_spec.rb +930 -43
- data/spec/models/language_spec.rb +1 -0
- data/spec/models/leave_conference_webhook_spec.rb +465 -2
- data/spec/models/log_level_spec.rb +1 -0
- data/spec/models/log_list_spec.rb +323 -2
- data/spec/models/log_result_spec.rb +368 -9
- data/spec/models/machine_detected_webhook_spec.rb +565 -10
- data/spec/models/machine_type_spec.rb +1 -0
- data/spec/models/make_call_request_spec.rb +529 -6
- data/spec/models/message_delivery_webhook_spec.rb +565 -6
- data/spec/models/message_direction_spec.rb +1 -0
- data/spec/models/message_request_spec.rb +469 -2
- data/spec/models/message_result_spec.rb +1364 -225
- data/spec/models/message_status_spec.rb +1 -0
- data/spec/models/message_status_webhook_spec.rb +615 -20
- data/spec/models/messages_list_spec.rb +323 -2
- data/spec/models/mutable_resource_model_spec.rb +207 -2
- data/spec/models/out_dial_api_connect_webhook_spec.rb +521 -2
- data/spec/models/out_dial_connect_webhook_spec.rb +521 -2
- data/spec/models/out_dial_spec.rb +505 -2
- data/spec/models/out_dial_start_webhook_spec.rb +599 -24
- data/spec/models/pagination_model_spec.rb +285 -2
- data/spec/models/park_spec.rb +169 -2
- data/spec/models/pause_spec.rb +39 -2
- data/spec/models/percl_command_spec.rb +54 -2
- data/spec/models/percl_script_spec.rb +39 -2
- data/spec/models/play_beep_spec.rb +1 -0
- data/spec/models/play_early_media_spec.rb +57 -2
- data/spec/models/play_spec.rb +133 -2
- data/spec/models/queue_list_spec.rb +323 -2
- data/spec/models/queue_member_list_spec.rb +323 -2
- data/spec/models/queue_member_spec.rb +245 -2
- data/spec/models/queue_request_spec.rb +95 -2
- data/spec/models/queue_result_spec.rb +564 -15
- data/spec/models/queue_result_status_spec.rb +1 -0
- data/spec/models/queue_wait_webhook_spec.rb +616 -21
- data/spec/models/record_utterance_spec.rb +303 -2
- data/spec/models/record_utterance_term_reason_spec.rb +1 -0
- data/spec/models/record_webhook_spec.rb +868 -13
- data/spec/models/recording_list_spec.rb +323 -2
- data/spec/models/recording_result_spec.rb +469 -2
- data/spec/models/redirect_spec.rb +57 -2
- data/spec/models/redirect_webhook_spec.rb +521 -2
- data/spec/models/reject_spec.rb +57 -2
- data/spec/models/remove_from_conference_spec.rb +1 -0
- data/spec/models/remove_from_queue_notification_webhook_spec.rb +546 -9
- data/spec/models/request_type_spec.rb +1 -0
- data/spec/models/say_spec.rb +189 -2
- data/spec/models/send_digits_spec.rb +133 -2
- data/spec/models/set_dtmf_pass_through_spec.rb +39 -2
- data/spec/models/set_listen_spec.rb +39 -2
- data/spec/models/set_talk_spec.rb +39 -2
- data/spec/models/sms_spec.rb +225 -2
- data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brand_spec.rb +1969 -423
- data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +323 -2
- data/spec/models/sms_ten_dlc_campaign_spec.rb +2224 -550
- data/spec/models/sms_ten_dlc_campaign_status_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +323 -2
- data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +597 -17
- data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +1537 -155
- data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +323 -2
- data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +1 -0
- data/spec/models/sms_toll_free_campaign_spec.rb +355 -2
- data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +323 -2
- data/spec/models/start_record_call_spec.rb +1 -0
- data/spec/models/terminate_conference_spec.rb +1 -0
- data/spec/models/tfn_campaign_spec.rb +1089 -0
- data/spec/models/tfn_spec.rb +57 -2
- data/spec/models/transcribe_reason_spec.rb +1 -0
- data/spec/models/transcribe_term_reason_spec.rb +1 -0
- data/spec/models/transcribe_utterance_record_spec.rb +115 -2
- data/spec/models/transcribe_utterance_spec.rb +288 -21
- data/spec/models/transcribe_webhook_spec.rb +1049 -4
- data/spec/models/unpark_spec.rb +1 -0
- data/spec/models/update_call_request_spec.rb +37 -2
- data/spec/models/update_call_request_status_spec.rb +1 -0
- data/spec/models/update_conference_participant_request_spec.rb +115 -2
- data/spec/models/update_conference_request_spec.rb +129 -2
- data/spec/models/update_conference_request_status_spec.rb +1 -0
- data/spec/models/webhook_spec.rb +54 -2
- metadata +129 -125
@@ -13,6 +13,7 @@ OpenAPI Generator version: 7.9.0
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
|
+
include Freeclimb
|
16
17
|
|
17
18
|
# Unit tests for Freeclimb::RecordUtterance
|
18
19
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
@@ -28,9 +29,12 @@ describe Freeclimb::RecordUtterance do
|
|
28
29
|
|
29
30
|
describe 'test attribute "action_url"' do
|
30
31
|
it 'should work' do
|
32
|
+
|
31
33
|
instance.action_url = "TEST_STRING"
|
32
34
|
expect(instance.action_url).to eq("TEST_STRING")
|
33
35
|
|
36
|
+
|
37
|
+
|
34
38
|
end
|
35
39
|
end
|
36
40
|
|
@@ -41,14 +45,19 @@ describe Freeclimb::RecordUtterance do
|
|
41
45
|
instance.silence_timeout_ms = 1
|
42
46
|
expect(instance.silence_timeout_ms).to eq(1)
|
43
47
|
|
48
|
+
|
49
|
+
|
44
50
|
end
|
45
51
|
end
|
46
52
|
|
47
53
|
describe 'test attribute "finish_on_key"' do
|
48
54
|
it 'should work' do
|
55
|
+
|
49
56
|
instance.finish_on_key = "TEST_STRING"
|
50
57
|
expect(instance.finish_on_key).to eq("TEST_STRING")
|
51
58
|
|
59
|
+
|
60
|
+
|
52
61
|
end
|
53
62
|
end
|
54
63
|
|
@@ -59,6 +68,8 @@ describe Freeclimb::RecordUtterance do
|
|
59
68
|
instance.max_length_sec = 1
|
60
69
|
expect(instance.max_length_sec).to eq(1)
|
61
70
|
|
71
|
+
|
72
|
+
|
62
73
|
end
|
63
74
|
end
|
64
75
|
|
@@ -67,6 +78,8 @@ describe Freeclimb::RecordUtterance do
|
|
67
78
|
instance.play_beep = false
|
68
79
|
expect(instance.play_beep).to eq(false)
|
69
80
|
|
81
|
+
|
82
|
+
|
70
83
|
end
|
71
84
|
end
|
72
85
|
|
@@ -75,6 +88,8 @@ describe Freeclimb::RecordUtterance do
|
|
75
88
|
instance.auto_start = false
|
76
89
|
expect(instance.auto_start).to eq(false)
|
77
90
|
|
91
|
+
|
92
|
+
|
78
93
|
end
|
79
94
|
end
|
80
95
|
|
@@ -83,63 +98,113 @@ describe Freeclimb::RecordUtterance do
|
|
83
98
|
instance.privacy_mode = false
|
84
99
|
expect(instance.privacy_mode).to eq(false)
|
85
100
|
|
101
|
+
|
102
|
+
|
86
103
|
end
|
87
104
|
end
|
88
105
|
|
89
106
|
describe 'test method "initialize"' do
|
90
107
|
it 'properly initializes with values' do
|
91
108
|
expect { instance = Freeclimb::RecordUtterance.new(
|
109
|
+
|
92
110
|
action_url: "TS",
|
93
111
|
|
112
|
+
|
113
|
+
|
94
114
|
silence_timeout_ms: 1,
|
95
115
|
|
116
|
+
|
117
|
+
|
118
|
+
|
96
119
|
finish_on_key: "TS",
|
97
120
|
|
121
|
+
|
122
|
+
|
98
123
|
max_length_sec: 1,
|
99
124
|
|
125
|
+
|
126
|
+
|
100
127
|
play_beep: true,
|
101
128
|
|
129
|
+
|
130
|
+
|
102
131
|
auto_start: true,
|
103
132
|
|
133
|
+
|
134
|
+
|
104
135
|
privacy_mode: true,
|
105
136
|
|
137
|
+
|
138
|
+
|
106
139
|
)}.not_to raise_error()
|
107
140
|
end
|
108
141
|
it 'fails to initialize with input argument that is not a hash in Freeclimb::RecordUtterance' do
|
109
142
|
expect { instance = Freeclimb::RecordUtterance.new(
|
143
|
+
|
110
144
|
action_url: "TS",
|
111
145
|
|
146
|
+
|
147
|
+
|
112
148
|
silence_timeout_ms: 1,
|
113
149
|
|
150
|
+
|
151
|
+
|
152
|
+
|
114
153
|
finish_on_key: "TS",
|
115
154
|
|
155
|
+
|
156
|
+
|
116
157
|
max_length_sec: 1,
|
117
158
|
|
159
|
+
|
160
|
+
|
118
161
|
play_beep: true,
|
119
162
|
|
163
|
+
|
164
|
+
|
120
165
|
auto_start: true,
|
121
166
|
|
167
|
+
|
168
|
+
|
122
169
|
privacy_mode: true,
|
123
170
|
|
171
|
+
|
172
|
+
|
124
173
|
invalid_attribute: true
|
125
174
|
)}.to raise_error(ArgumentError)
|
126
175
|
end
|
127
176
|
it 'fails to initialize with invalid attribute' do
|
128
177
|
expect { instance = Freeclimb::RecordUtterance.new(
|
178
|
+
|
129
179
|
action_url: "TS",
|
130
180
|
|
181
|
+
|
182
|
+
|
131
183
|
silence_timeout_ms: 1,
|
132
184
|
|
185
|
+
|
186
|
+
|
187
|
+
|
133
188
|
finish_on_key: "TS",
|
134
189
|
|
190
|
+
|
191
|
+
|
135
192
|
max_length_sec: 1,
|
136
193
|
|
194
|
+
|
195
|
+
|
137
196
|
play_beep: true,
|
138
197
|
|
198
|
+
|
199
|
+
|
139
200
|
auto_start: true,
|
140
201
|
|
202
|
+
|
203
|
+
|
141
204
|
privacy_mode: true,
|
142
205
|
|
206
|
+
|
207
|
+
|
143
208
|
invalid_attribute: true
|
144
209
|
)}.to raise_error(ArgumentError)
|
145
210
|
end
|
@@ -148,20 +213,36 @@ describe Freeclimb::RecordUtterance do
|
|
148
213
|
describe 'test method "valid"' do
|
149
214
|
it 'checks if properties are valid' do
|
150
215
|
instance = Freeclimb::RecordUtterance.new(
|
216
|
+
|
151
217
|
action_url: "TS",
|
152
218
|
|
219
|
+
|
220
|
+
|
153
221
|
silence_timeout_ms: 1,
|
154
222
|
|
223
|
+
|
224
|
+
|
225
|
+
|
155
226
|
finish_on_key: "TS",
|
156
227
|
|
228
|
+
|
229
|
+
|
157
230
|
max_length_sec: 1,
|
158
231
|
|
232
|
+
|
233
|
+
|
159
234
|
play_beep: true,
|
160
235
|
|
236
|
+
|
237
|
+
|
161
238
|
auto_start: true,
|
162
239
|
|
240
|
+
|
241
|
+
|
163
242
|
privacy_mode: true,
|
164
243
|
|
244
|
+
|
245
|
+
|
165
246
|
)
|
166
247
|
expect(instance.valid?).to eq(true)
|
167
248
|
end
|
@@ -178,74 +259,144 @@ describe Freeclimb::RecordUtterance do
|
|
178
259
|
|
179
260
|
describe 'test method "eql?"' do
|
180
261
|
it 'checks if objects are equal' do
|
181
|
-
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
182
269
|
instance_1 = Freeclimb::RecordUtterance.new(
|
270
|
+
|
183
271
|
action_url: "TS",
|
184
272
|
|
273
|
+
|
274
|
+
|
185
275
|
silence_timeout_ms: 1,
|
186
276
|
|
277
|
+
|
278
|
+
|
279
|
+
|
187
280
|
finish_on_key: "TS",
|
188
281
|
|
282
|
+
|
283
|
+
|
189
284
|
max_length_sec: 1,
|
190
285
|
|
286
|
+
|
287
|
+
|
191
288
|
play_beep: true,
|
192
289
|
|
290
|
+
|
291
|
+
|
193
292
|
auto_start: true,
|
194
293
|
|
294
|
+
|
295
|
+
|
195
296
|
privacy_mode: true,
|
196
297
|
|
298
|
+
|
299
|
+
|
197
300
|
)
|
198
301
|
instance_2 = Freeclimb::RecordUtterance.new(
|
302
|
+
|
199
303
|
action_url: "TS",
|
200
304
|
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
|
201
309
|
silence_timeout_ms: 1,
|
202
310
|
|
311
|
+
|
203
312
|
finish_on_key: "TS",
|
204
313
|
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
205
318
|
max_length_sec: 1,
|
206
319
|
|
207
320
|
play_beep: true,
|
208
321
|
|
322
|
+
|
323
|
+
|
209
324
|
auto_start: true,
|
210
325
|
|
326
|
+
|
327
|
+
|
211
328
|
privacy_mode: true,
|
212
329
|
|
330
|
+
|
331
|
+
|
213
332
|
)
|
214
333
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
215
334
|
end
|
216
335
|
|
217
336
|
it 'checks if objects are not equal' do
|
218
337
|
instance_1 = Freeclimb::RecordUtterance.new(
|
338
|
+
|
219
339
|
action_url: "TS",
|
220
340
|
|
341
|
+
|
342
|
+
|
221
343
|
silence_timeout_ms: 2,
|
222
344
|
|
345
|
+
|
346
|
+
|
347
|
+
|
223
348
|
finish_on_key: "TS",
|
224
349
|
|
350
|
+
|
351
|
+
|
225
352
|
max_length_sec: 2,
|
226
353
|
|
354
|
+
|
355
|
+
|
227
356
|
play_beep: true,
|
228
357
|
|
358
|
+
|
359
|
+
|
229
360
|
auto_start: true,
|
230
361
|
|
362
|
+
|
363
|
+
|
231
364
|
privacy_mode: true,
|
232
365
|
|
366
|
+
|
367
|
+
|
233
368
|
)
|
234
369
|
instance_2 = Freeclimb::RecordUtterance.new(
|
370
|
+
|
235
371
|
action_url: "ST",
|
236
372
|
|
373
|
+
|
374
|
+
|
237
375
|
silence_timeout_ms: 1,
|
238
376
|
|
377
|
+
|
378
|
+
|
379
|
+
|
239
380
|
finish_on_key: "ST",
|
240
381
|
|
382
|
+
|
383
|
+
|
241
384
|
max_length_sec: 1,
|
242
385
|
|
386
|
+
|
387
|
+
|
243
388
|
play_beep: false,
|
244
389
|
|
390
|
+
|
391
|
+
|
245
392
|
auto_start: false,
|
246
393
|
|
394
|
+
|
395
|
+
|
247
396
|
privacy_mode: false,
|
248
397
|
|
398
|
+
|
399
|
+
|
249
400
|
)
|
250
401
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
251
402
|
end
|
@@ -254,20 +405,36 @@ describe Freeclimb::RecordUtterance do
|
|
254
405
|
describe 'test method "hash"' do
|
255
406
|
it 'calculates hash code' do
|
256
407
|
instance = Freeclimb::RecordUtterance.new(
|
408
|
+
|
257
409
|
action_url: "TS",
|
258
410
|
|
411
|
+
|
412
|
+
|
259
413
|
silence_timeout_ms: 1,
|
260
414
|
|
415
|
+
|
416
|
+
|
417
|
+
|
261
418
|
finish_on_key: "TS",
|
262
419
|
|
420
|
+
|
421
|
+
|
263
422
|
max_length_sec: 1,
|
264
423
|
|
424
|
+
|
425
|
+
|
265
426
|
play_beep: true,
|
266
427
|
|
428
|
+
|
429
|
+
|
267
430
|
auto_start: true,
|
268
431
|
|
432
|
+
|
433
|
+
|
269
434
|
privacy_mode: true,
|
270
435
|
|
436
|
+
|
437
|
+
|
271
438
|
)
|
272
439
|
expect(instance.hash).to be_a_kind_of(Integer)
|
273
440
|
end
|
@@ -276,36 +443,68 @@ describe Freeclimb::RecordUtterance do
|
|
276
443
|
describe 'test method "build_from_hash"' do
|
277
444
|
it 'builds equivalent model from hash code' do
|
278
445
|
instance_1 = Freeclimb::RecordUtterance.new(
|
446
|
+
|
279
447
|
action_url: "TS",
|
280
448
|
|
449
|
+
|
450
|
+
|
281
451
|
silence_timeout_ms: 1,
|
282
452
|
|
453
|
+
|
454
|
+
|
455
|
+
|
283
456
|
finish_on_key: "TS",
|
284
457
|
|
458
|
+
|
459
|
+
|
285
460
|
max_length_sec: 1,
|
286
461
|
|
462
|
+
|
463
|
+
|
287
464
|
play_beep: true,
|
288
465
|
|
466
|
+
|
467
|
+
|
289
468
|
auto_start: true,
|
290
469
|
|
470
|
+
|
471
|
+
|
291
472
|
privacy_mode: true,
|
292
473
|
|
474
|
+
|
475
|
+
|
293
476
|
)
|
294
477
|
instance_2 = Freeclimb::RecordUtterance.new(
|
478
|
+
|
295
479
|
action_url: "TS",
|
296
480
|
|
481
|
+
|
482
|
+
|
297
483
|
silence_timeout_ms: 1,
|
298
484
|
|
485
|
+
|
486
|
+
|
487
|
+
|
299
488
|
finish_on_key: "TS",
|
300
489
|
|
490
|
+
|
491
|
+
|
301
492
|
max_length_sec: 1,
|
302
493
|
|
494
|
+
|
495
|
+
|
303
496
|
play_beep: true,
|
304
497
|
|
498
|
+
|
499
|
+
|
305
500
|
auto_start: true,
|
306
501
|
|
502
|
+
|
503
|
+
|
307
504
|
privacy_mode: true,
|
308
505
|
|
506
|
+
|
507
|
+
|
309
508
|
)
|
310
509
|
|
311
510
|
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
@@ -314,39 +513,69 @@ describe Freeclimb::RecordUtterance do
|
|
314
513
|
|
315
514
|
describe 'test method "_deserialize"' do
|
316
515
|
instance = Freeclimb::RecordUtterance.new(
|
516
|
+
|
317
517
|
action_url: "TS",
|
318
518
|
|
519
|
+
|
520
|
+
|
319
521
|
silence_timeout_ms: 1,
|
320
522
|
|
523
|
+
|
524
|
+
|
525
|
+
|
321
526
|
finish_on_key: "TS",
|
322
527
|
|
528
|
+
|
529
|
+
|
323
530
|
max_length_sec: 1,
|
324
531
|
|
532
|
+
|
533
|
+
|
325
534
|
play_beep: true,
|
326
535
|
|
536
|
+
|
537
|
+
|
327
538
|
auto_start: true,
|
328
539
|
|
540
|
+
|
541
|
+
|
329
542
|
privacy_mode: true,
|
330
543
|
|
544
|
+
|
545
|
+
|
331
546
|
)
|
332
547
|
it 'deserializes the data of action_url' do
|
333
548
|
expect(instance._deserialize("String", instance.action_url)).to be_a_kind_of(String)
|
334
549
|
end
|
550
|
+
|
551
|
+
|
335
552
|
it 'deserializes the data of silence_timeout_ms' do
|
336
553
|
expect(instance._deserialize("Integer", instance.silence_timeout_ms)).to be_a_kind_of(Integer)
|
337
554
|
end
|
555
|
+
|
556
|
+
|
338
557
|
it 'deserializes the data of finish_on_key' do
|
339
558
|
expect(instance._deserialize("String", instance.finish_on_key)).to be_a_kind_of(String)
|
340
559
|
end
|
560
|
+
|
561
|
+
|
341
562
|
it 'deserializes the data of max_length_sec' do
|
342
563
|
expect(instance._deserialize("Integer", instance.max_length_sec)).to be_a_kind_of(Integer)
|
343
564
|
end
|
565
|
+
|
566
|
+
|
567
|
+
|
568
|
+
|
344
569
|
it 'deserializes the data of play_beep' do
|
345
570
|
expect(instance._deserialize("Boolean", instance.play_beep)).to be_a_kind_of(TrueClass)
|
346
571
|
end
|
572
|
+
|
573
|
+
|
347
574
|
it 'deserializes the data of auto_start' do
|
348
575
|
expect(instance._deserialize("Boolean", instance.auto_start)).to be_a_kind_of(TrueClass)
|
349
576
|
end
|
577
|
+
|
578
|
+
|
350
579
|
it 'deserializes the data of privacy_mode' do
|
351
580
|
expect(instance._deserialize("Boolean", instance.privacy_mode)).to be_a_kind_of(TrueClass)
|
352
581
|
end
|
@@ -355,20 +584,36 @@ describe Freeclimb::RecordUtterance do
|
|
355
584
|
describe 'test method "to_s"' do
|
356
585
|
it 'returns the string representation of the object' do
|
357
586
|
instance = Freeclimb::RecordUtterance.new(
|
587
|
+
|
358
588
|
action_url: "TS",
|
359
589
|
|
590
|
+
|
591
|
+
|
360
592
|
silence_timeout_ms: 1,
|
361
593
|
|
594
|
+
|
595
|
+
|
596
|
+
|
362
597
|
finish_on_key: "TS",
|
363
598
|
|
599
|
+
|
600
|
+
|
364
601
|
max_length_sec: 1,
|
365
602
|
|
603
|
+
|
604
|
+
|
366
605
|
play_beep: true,
|
367
606
|
|
607
|
+
|
608
|
+
|
368
609
|
auto_start: true,
|
369
610
|
|
611
|
+
|
612
|
+
|
370
613
|
privacy_mode: true,
|
371
614
|
|
615
|
+
|
616
|
+
|
372
617
|
)
|
373
618
|
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
374
619
|
end
|
@@ -377,56 +622,110 @@ describe Freeclimb::RecordUtterance do
|
|
377
622
|
describe 'test method "to_hash"' do
|
378
623
|
it 'returns the object in the form of hash' do
|
379
624
|
instance = Freeclimb::RecordUtterance.new(
|
625
|
+
|
380
626
|
action_url: "TS",
|
381
627
|
|
628
|
+
|
629
|
+
|
382
630
|
silence_timeout_ms: 1,
|
383
631
|
|
632
|
+
|
633
|
+
|
634
|
+
|
384
635
|
finish_on_key: "TS",
|
385
636
|
|
637
|
+
|
638
|
+
|
386
639
|
max_length_sec: 1,
|
387
640
|
|
641
|
+
|
642
|
+
|
388
643
|
play_beep: true,
|
389
644
|
|
645
|
+
|
646
|
+
|
390
647
|
auto_start: true,
|
391
648
|
|
649
|
+
|
650
|
+
|
392
651
|
privacy_mode: true,
|
393
652
|
|
653
|
+
|
654
|
+
|
394
655
|
)
|
395
656
|
expect(instance.to_hash).to be_a_kind_of(Hash)
|
396
657
|
end
|
397
658
|
it 'creates equal hash for two equal objects' do
|
398
|
-
|
659
|
+
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
|
664
|
+
|
665
|
+
|
399
666
|
instance_1 = Freeclimb::RecordUtterance.new(
|
667
|
+
|
400
668
|
action_url: "TS",
|
401
669
|
|
670
|
+
|
671
|
+
|
402
672
|
silence_timeout_ms: 1,
|
403
673
|
|
674
|
+
|
675
|
+
|
676
|
+
|
404
677
|
finish_on_key: "TS",
|
405
678
|
|
679
|
+
|
680
|
+
|
406
681
|
max_length_sec: 1,
|
407
682
|
|
683
|
+
|
684
|
+
|
408
685
|
play_beep: true,
|
409
686
|
|
687
|
+
|
688
|
+
|
410
689
|
auto_start: true,
|
411
690
|
|
691
|
+
|
692
|
+
|
412
693
|
privacy_mode: true,
|
413
694
|
|
695
|
+
|
696
|
+
|
414
697
|
)
|
415
698
|
instance_2 = Freeclimb::RecordUtterance.new(
|
699
|
+
|
416
700
|
action_url: "TS",
|
417
701
|
|
702
|
+
|
703
|
+
|
418
704
|
silence_timeout_ms: 1,
|
419
705
|
|
706
|
+
|
707
|
+
|
708
|
+
|
420
709
|
finish_on_key: "TS",
|
421
710
|
|
711
|
+
|
712
|
+
|
422
713
|
max_length_sec: 1,
|
423
714
|
|
715
|
+
|
716
|
+
|
424
717
|
play_beep: true,
|
425
718
|
|
719
|
+
|
720
|
+
|
426
721
|
auto_start: true,
|
427
722
|
|
723
|
+
|
724
|
+
|
428
725
|
privacy_mode: true,
|
429
726
|
|
727
|
+
|
728
|
+
|
430
729
|
)
|
431
730
|
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
432
731
|
end
|
@@ -434,12 +733,14 @@ describe Freeclimb::RecordUtterance do
|
|
434
733
|
|
435
734
|
describe 'test method "_to_hash"' do
|
436
735
|
instance = Freeclimb::RecordUtterance.new(
|
736
|
+
|
437
737
|
action_url: "TS",
|
438
738
|
|
439
739
|
|
440
740
|
silence_timeout_ms: 1,
|
441
741
|
|
442
742
|
|
743
|
+
|
443
744
|
finish_on_key: "TS",
|
444
745
|
|
445
746
|
|