freeclimb 4.4.0 → 4.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -2
  3. data/Gemfile.lock +1 -1
  4. data/README.md +4 -4
  5. data/docs/AddToConference.md +1 -1
  6. data/docs/AddToConferenceAllOf.md +1 -1
  7. data/lib/freeclimb/models/add_to_conference.rb +1 -1
  8. data/lib/freeclimb/models/add_to_conference_all_of.rb +1 -1
  9. data/lib/freeclimb/version.rb +1 -1
  10. data/openapi.json +161 -60
  11. data/spec/models/account_request_spec.rb +143 -2
  12. data/spec/models/account_result_spec.rb +377 -13
  13. data/spec/models/account_status_spec.rb +39 -6
  14. data/spec/models/account_type_spec.rb +26 -4
  15. data/spec/models/add_to_conference_spec.rb +343 -10
  16. data/spec/models/answered_by_spec.rb +26 -4
  17. data/spec/models/application_list_spec.rb +293 -8
  18. data/spec/models/application_request_spec.rb +268 -7
  19. data/spec/models/application_result_spec.rb +418 -13
  20. data/spec/models/available_number_list_spec.rb +293 -8
  21. data/spec/models/available_number_spec.rb +263 -7
  22. data/spec/models/buy_incoming_number_request_spec.rb +168 -3
  23. data/spec/models/call_direction_spec.rb +39 -6
  24. data/spec/models/call_list_spec.rb +293 -8
  25. data/spec/models/call_result_spec.rb +603 -22
  26. data/spec/models/call_status_spec.rb +104 -16
  27. data/spec/models/capabilities_spec.rb +218 -5
  28. data/spec/models/conference_list_spec.rb +293 -8
  29. data/spec/models/conference_participant_list_spec.rb +293 -8
  30. data/spec/models/conference_participant_result_spec.rb +343 -10
  31. data/spec/models/conference_result_spec.rb +464 -16
  32. data/spec/models/conference_status_spec.rb +52 -8
  33. data/spec/models/create_conference_request_spec.rb +228 -6
  34. data/spec/models/create_conference_spec.rb +253 -7
  35. data/spec/models/enqueue_spec.rb +193 -4
  36. data/spec/models/filter_logs_request_spec.rb +118 -1
  37. data/spec/models/get_digits_spec.rb +318 -9
  38. data/spec/models/get_speech_reason_spec.rb +78 -12
  39. data/spec/models/get_speech_spec.rb +388 -14
  40. data/spec/models/grammar_file_built_in_spec.rb +195 -30
  41. data/spec/models/grammar_type_spec.rb +26 -4
  42. data/spec/models/hangup_spec.rb +118 -1
  43. data/spec/models/if_machine_spec.rb +26 -4
  44. data/spec/models/incoming_number_list_spec.rb +293 -8
  45. data/spec/models/incoming_number_request_spec.rb +173 -2
  46. data/spec/models/incoming_number_result_spec.rb +488 -16
  47. data/spec/models/language_spec.rb +338 -52
  48. data/spec/models/log_level_spec.rb +39 -6
  49. data/spec/models/log_list_spec.rb +293 -8
  50. data/spec/models/log_result_spec.rb +275 -8
  51. data/spec/models/machine_type_spec.rb +26 -4
  52. data/spec/models/make_call_request_spec.rb +343 -10
  53. data/spec/models/message_direction_spec.rb +26 -4
  54. data/spec/models/message_request_spec.rb +318 -9
  55. data/spec/models/message_result_spec.rb +431 -13
  56. data/spec/models/message_status_spec.rb +143 -22
  57. data/spec/models/messages_list_spec.rb +293 -8
  58. data/spec/models/mutable_resource_model_spec.rb +193 -4
  59. data/spec/models/out_dial_spec.rb +345 -11
  60. data/spec/models/pagination_model_spec.rb +268 -7
  61. data/spec/models/park_spec.rb +168 -3
  62. data/spec/models/pause_spec.rb +118 -1
  63. data/spec/models/percl_command_spec.rb +132 -3
  64. data/spec/models/percl_script_spec.rb +118 -1
  65. data/spec/models/play_beep_spec.rb +52 -8
  66. data/spec/models/play_early_media_spec.rb +118 -1
  67. data/spec/models/play_spec.rb +193 -4
  68. data/spec/models/queue_list_spec.rb +293 -8
  69. data/spec/models/queue_member_list_spec.rb +293 -8
  70. data/spec/models/queue_member_spec.rb +218 -5
  71. data/spec/models/queue_request_spec.rb +143 -2
  72. data/spec/models/queue_result_spec.rb +369 -11
  73. data/spec/models/queue_result_status_spec.rb +52 -8
  74. data/spec/models/record_utterance_spec.rb +268 -7
  75. data/spec/models/record_utterance_term_reason_spec.rb +52 -8
  76. data/spec/models/recording_list_spec.rb +293 -8
  77. data/spec/models/recording_result_spec.rb +318 -9
  78. data/spec/models/redirect_spec.rb +118 -1
  79. data/spec/models/reject_spec.rb +118 -1
  80. data/spec/models/remove_from_conference_spec.rb +118 -1
  81. data/spec/models/request_type_spec.rb +299 -46
  82. data/spec/models/say_spec.rb +218 -5
  83. data/spec/models/send_digits_spec.rb +168 -3
  84. data/spec/models/set_listen_spec.rb +143 -2
  85. data/spec/models/set_talk_spec.rb +143 -2
  86. data/spec/models/sms_spec.rb +193 -4
  87. data/spec/models/sms_ten_dlc_brand_spec.rb +1070 -64
  88. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +294 -9
  89. data/spec/models/sms_ten_dlc_campaign_spec.rb +875 -38
  90. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +294 -9
  91. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +365 -11
  92. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +823 -35
  93. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +294 -9
  94. data/spec/models/terminate_conference_spec.rb +118 -1
  95. data/spec/models/update_call_request_spec.rb +120 -2
  96. data/spec/models/update_call_request_status_spec.rb +26 -4
  97. data/spec/models/update_conference_participant_request_spec.rb +143 -2
  98. data/spec/models/update_conference_request_spec.rb +180 -5
  99. data/spec/models/update_conference_request_status_spec.rb +26 -4
  100. metadata +77 -77
@@ -27,67 +27,425 @@ describe Freeclimb::QueueResult do
27
27
  end
28
28
  describe 'test attribute "uri"' do
29
29
  it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
30
+ instance.uri = "TEST_STRING"
31
+ expect(instance.uri).to eq("TEST_STRING")
31
32
  end
32
33
  end
33
34
 
34
35
  describe 'test attribute "date_created"' do
35
36
  it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ instance.date_created = "TEST_STRING"
38
+ expect(instance.date_created).to eq("TEST_STRING")
37
39
  end
38
40
  end
39
41
 
40
42
  describe 'test attribute "date_updated"' do
41
43
  it 'should work' do
42
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ instance.date_updated = "TEST_STRING"
45
+ expect(instance.date_updated).to eq("TEST_STRING")
43
46
  end
44
47
  end
45
48
 
46
49
  describe 'test attribute "revision"' do
47
50
  it 'should work' do
48
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
51
+ instance.revision = 1
52
+ expect(instance.revision).to eq(1)
49
53
  end
50
54
  end
51
55
 
52
56
  describe 'test attribute "account_id"' do
53
57
  it 'should work' do
54
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
+ instance.account_id = "TEST_STRING"
59
+ expect(instance.account_id).to eq("TEST_STRING")
55
60
  end
56
61
  end
57
62
 
58
63
  describe 'test attribute "queue_id"' do
59
64
  it 'should work' do
60
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
+ instance.queue_id = "TEST_STRING"
66
+ expect(instance.queue_id).to eq("TEST_STRING")
61
67
  end
62
68
  end
63
69
 
64
70
  describe 'test attribute "_alias"' do
65
71
  it 'should work' do
66
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
+ instance._alias = "TEST_STRING"
73
+ expect(instance._alias).to eq("TEST_STRING")
67
74
  end
68
75
  end
69
76
 
70
77
  describe 'test attribute "max_size"' do
71
78
  it 'should work' do
72
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
+ instance.max_size = 1
80
+ expect(instance.max_size).to eq(1)
73
81
  end
74
82
  end
75
83
 
76
84
  describe 'test attribute "current_size"' do
77
85
  it 'should work' do
78
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
+ instance.current_size = 1
87
+ expect(instance.current_size).to eq(1)
79
88
  end
80
89
  end
81
90
 
82
91
  describe 'test attribute "average_queue_removal_time"' do
83
92
  it 'should work' do
84
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
93
+ instance.average_queue_removal_time = 1
94
+ expect(instance.average_queue_removal_time).to eq(1)
85
95
  end
86
96
  end
87
97
 
88
98
  describe 'test attribute "subresource_uris"' do
89
99
  it 'should work' do
90
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
100
+ testObject = Object.new()
101
+ instance.subresource_uris = testObject
102
+ expect(instance.subresource_uris).to eq(testObject)
103
+ end
104
+ end
105
+
106
+ describe 'test method "initialize"' do
107
+ it 'properly initializes with values' do
108
+ expect{instance = Freeclimb::QueueResult.new(
109
+ uri: "TS",
110
+ date_created: "TS",
111
+ date_updated: "TS",
112
+ revision: 1,
113
+ account_id: "TS",
114
+ queue_id: "TS",
115
+ _alias: "TS",
116
+ max_size: 1,
117
+ current_size: 1,
118
+ average_queue_removal_time: 1,
119
+ subresource_uris: Object.new(),
120
+ )}.not_to raise_error()
121
+ end
122
+ it 'fails to initialize with input argument that is not a hash in Freeclimb::QueueResult' do
123
+ expect{instance = Freeclimb::QueueResult.new(
124
+ uri: "TS",
125
+ date_created: "TS",
126
+ date_updated: "TS",
127
+ revision: 1,
128
+ account_id: "TS",
129
+ queue_id: "TS",
130
+ _alias: "TS",
131
+ max_size: 1,
132
+ current_size: 1,
133
+ average_queue_removal_time: 1,
134
+ subresource_uris: Object.new(),
135
+ invalid_attribute: true
136
+ )}.to raise_error(ArgumentError)
137
+ end
138
+ it 'fails to initialize with invalid attribute' do
139
+ expect{instance = Freeclimb::QueueResult.new(
140
+ uri: "TS",
141
+ date_created: "TS",
142
+ date_updated: "TS",
143
+ revision: 1,
144
+ account_id: "TS",
145
+ queue_id: "TS",
146
+ _alias: "TS",
147
+ max_size: 1,
148
+ current_size: 1,
149
+ average_queue_removal_time: 1,
150
+ subresource_uris: Object.new(),
151
+ invalid_attribute: true
152
+ )}.to raise_error(ArgumentError)
153
+ end
154
+ end
155
+
156
+ describe 'test method "valid"' do
157
+ it 'checks if properties are valid' do
158
+ instance = Freeclimb::QueueResult.new(
159
+ uri: "TS",
160
+ date_created: "TS",
161
+ date_updated: "TS",
162
+ revision: 1,
163
+ account_id: "TS",
164
+ queue_id: "TS",
165
+ _alias: "TS",
166
+ max_size: 1,
167
+ current_size: 1,
168
+ average_queue_removal_time: 1,
169
+ subresource_uris: Object.new(),
170
+ )
171
+ expect(instance.valid?).to eq(true)
172
+ end
173
+ end
174
+
175
+ describe 'test method "eql?"' do
176
+ it 'checks if objects are equal' do
177
+ obj = Object.new()
178
+ instance_1 = Freeclimb::QueueResult.new(
179
+ uri: "TS",
180
+ date_created: "TS",
181
+ date_updated: "TS",
182
+ revision: 1,
183
+ account_id: "TS",
184
+ queue_id: "TS",
185
+ _alias: "TS",
186
+ max_size: 1,
187
+ current_size: 1,
188
+ average_queue_removal_time: 1,
189
+ subresource_uris: obj,
190
+ )
191
+ instance_2 = Freeclimb::QueueResult.new(
192
+ uri: "TS",
193
+ date_created: "TS",
194
+ date_updated: "TS",
195
+ revision: 1,
196
+ account_id: "TS",
197
+ queue_id: "TS",
198
+ _alias: "TS",
199
+ max_size: 1,
200
+ current_size: 1,
201
+ average_queue_removal_time: 1,
202
+ subresource_uris: obj,
203
+ )
204
+ expect(instance_1.eql?(instance_2)).to eq(true)
205
+ end
206
+ it 'checks if objects are not equal' do
207
+ instance_1 = Freeclimb::QueueResult.new(
208
+ uri: "TS",
209
+ date_created: "TS",
210
+ date_updated: "TS",
211
+ revision: 1,
212
+ account_id: "TS",
213
+ queue_id: "TS",
214
+ _alias: "TS",
215
+ max_size: 1,
216
+ current_size: 1,
217
+ average_queue_removal_time: 1,
218
+ subresource_uris: Object.new(),
219
+ )
220
+ instance_2 = Freeclimb::QueueResult.new(
221
+ uri: "ST",
222
+ date_created: "ST",
223
+ date_updated: "ST",
224
+ revision: 0,
225
+ account_id: "ST",
226
+ queue_id: "ST",
227
+ _alias: "ST",
228
+ max_size: 0,
229
+ current_size: 0,
230
+ average_queue_removal_time: 0,
231
+ subresource_uris: nil,
232
+ )
233
+ expect(instance_1.eql?(instance_2)).to eq(false)
234
+ end
235
+ end
236
+
237
+ describe 'test method "hash"' do
238
+ it 'calculates hash code' do
239
+ instance = Freeclimb::QueueResult.new(
240
+ uri: "TS",
241
+ date_created: "TS",
242
+ date_updated: "TS",
243
+ revision: 1,
244
+ account_id: "TS",
245
+ queue_id: "TS",
246
+ _alias: "TS",
247
+ max_size: 1,
248
+ current_size: 1,
249
+ average_queue_removal_time: 1,
250
+ subresource_uris: Object.new(),
251
+ )
252
+ expect(instance.hash).to be_a_kind_of(Integer)
253
+ end
254
+ end
255
+
256
+ describe 'test method "build_from_hash"' do
257
+ it 'builds equivalent model from hash code' do
258
+ instance_1 = Freeclimb::QueueResult.new(
259
+ uri: "TS",
260
+ date_created: "TS",
261
+ date_updated: "TS",
262
+ revision: 1,
263
+ account_id: "TS",
264
+ queue_id: "TS",
265
+ _alias: "TS",
266
+ max_size: 1,
267
+ current_size: 1,
268
+ average_queue_removal_time: 1,
269
+ subresource_uris: Object.new(),
270
+ )
271
+ instance_2 = Freeclimb::QueueResult.new
272
+ expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
273
+ end
274
+ end
275
+
276
+ describe 'test method "_deserialize"' do
277
+ instance = Freeclimb::QueueResult.new(
278
+ uri: "TS",
279
+ date_created: "TS",
280
+ date_updated: "TS",
281
+ revision: 1,
282
+ account_id: "TS",
283
+ queue_id: "TS",
284
+ _alias: "TS",
285
+ max_size: 1,
286
+ current_size: 1,
287
+ average_queue_removal_time: 1,
288
+ subresource_uris: Object.new(),
289
+ )
290
+ it 'deserializes the data of uri' do
291
+ expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String)
292
+ end
293
+ it 'deserializes the data of date_created' do
294
+ expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String)
295
+ end
296
+ it 'deserializes the data of date_updated' do
297
+ expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String)
298
+ end
299
+ it 'deserializes the data of revision' do
300
+ expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer)
301
+ end
302
+ it 'deserializes the data of account_id' do
303
+ expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
304
+ end
305
+ it 'deserializes the data of queue_id' do
306
+ expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String)
307
+ end
308
+ it 'deserializes the data of _alias' do
309
+ expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String)
310
+ end
311
+ it 'deserializes the data of max_size' do
312
+ expect(instance._deserialize("Integer", instance.max_size)).to be_a_kind_of(Integer)
313
+ end
314
+ it 'deserializes the data of current_size' do
315
+ expect(instance._deserialize("Integer", instance.current_size)).to be_a_kind_of(Integer)
316
+ end
317
+ it 'deserializes the data of average_queue_removal_time' do
318
+ expect(instance._deserialize("Integer", instance.average_queue_removal_time)).to be_a_kind_of(Integer)
319
+ end
320
+ it 'deserializes the data of subresource_uris' do
321
+ expect(instance._deserialize("Object", instance.subresource_uris)).to be_a_kind_of(Object)
322
+ end
323
+ end
324
+
325
+ describe 'test method "to_s"' do
326
+ it 'returns the string representation of the object' do
327
+ instance = Freeclimb::QueueResult.new(
328
+ uri: "TS",
329
+ date_created: "TS",
330
+ date_updated: "TS",
331
+ revision: 1,
332
+ account_id: "TS",
333
+ queue_id: "TS",
334
+ _alias: "TS",
335
+ max_size: 1,
336
+ current_size: 1,
337
+ average_queue_removal_time: 1,
338
+ subresource_uris: Object.new(),
339
+ )
340
+ expect(instance.to_s).to eq(instance.to_hash.to_s)
341
+ end
342
+ end
343
+
344
+ describe 'test method "to_hash"' do
345
+ it 'returns the object in the form of hash' do
346
+ instance = Freeclimb::QueueResult.new(
347
+ uri: "TS",
348
+ date_created: "TS",
349
+ date_updated: "TS",
350
+ revision: 1,
351
+ account_id: "TS",
352
+ queue_id: "TS",
353
+ _alias: "TS",
354
+ max_size: 1,
355
+ current_size: 1,
356
+ average_queue_removal_time: 1,
357
+ subresource_uris: Object.new(),
358
+ )
359
+ expect(instance.to_hash).to be_a_kind_of(Hash)
360
+ end
361
+ it 'creates equal hash for two equal objects' do
362
+ obj = Object.new()
363
+ instance_1 = Freeclimb::QueueResult.new(
364
+ uri: "TS",
365
+ date_created: "TS",
366
+ date_updated: "TS",
367
+ revision: 1,
368
+ account_id: "TS",
369
+ queue_id: "TS",
370
+ _alias: "TS",
371
+ max_size: 1,
372
+ current_size: 1,
373
+ average_queue_removal_time: 1,
374
+ subresource_uris: obj,
375
+ )
376
+ instance_2 = Freeclimb::QueueResult.new(
377
+ uri: "TS",
378
+ date_created: "TS",
379
+ date_updated: "TS",
380
+ revision: 1,
381
+ account_id: "TS",
382
+ queue_id: "TS",
383
+ _alias: "TS",
384
+ max_size: 1,
385
+ current_size: 1,
386
+ average_queue_removal_time: 1,
387
+ subresource_uris: obj,
388
+ )
389
+ expect(instance_1.to_hash).to eq(instance_2.to_hash)
390
+ end
391
+ end
392
+
393
+ describe 'test method "_to_hash"' do
394
+ instance = Freeclimb::QueueResult.new(
395
+ uri: "TS",
396
+
397
+ date_created: "TS",
398
+
399
+ date_updated: "TS",
400
+
401
+ revision: 1,
402
+
403
+ account_id: "TS",
404
+
405
+ queue_id: "TS",
406
+
407
+ _alias: "TS",
408
+
409
+ max_size: 1,
410
+
411
+ current_size: 1,
412
+
413
+ average_queue_removal_time: 1,
414
+
415
+ subresource_uris: Object.new(),
416
+ )
417
+ it 'returns uri in the form of hash' do
418
+ expect(instance._to_hash(instance.uri)).to eq(instance.uri)
419
+ end
420
+ it 'returns date_created in the form of hash' do
421
+ expect(instance._to_hash(instance.date_created)).to eq(instance.date_created)
422
+ end
423
+ it 'returns date_updated in the form of hash' do
424
+ expect(instance._to_hash(instance.date_updated)).to eq(instance.date_updated)
425
+ end
426
+ it 'returns revision in the form of hash' do
427
+ expect(instance._to_hash(instance.revision)).to eq(instance.revision)
428
+ end
429
+ it 'returns account_id in the form of hash' do
430
+ expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)
431
+ end
432
+ it 'returns queue_id in the form of hash' do
433
+ expect(instance._to_hash(instance.queue_id)).to eq(instance.queue_id)
434
+ end
435
+ it 'returns _alias in the form of hash' do
436
+ expect(instance._to_hash(instance._alias)).to eq(instance._alias)
437
+ end
438
+ it 'returns max_size in the form of hash' do
439
+ expect(instance._to_hash(instance.max_size)).to eq(instance.max_size)
440
+ end
441
+ it 'returns current_size in the form of hash' do
442
+ expect(instance._to_hash(instance.current_size)).to eq(instance.current_size)
443
+ end
444
+ it 'returns average_queue_removal_time in the form of hash' do
445
+ expect(instance._to_hash(instance.average_queue_removal_time)).to eq(instance.average_queue_removal_time)
446
+ end
447
+ it 'returns subresource_uris in the form of hash' do
448
+ expect(instance._to_hash(instance.subresource_uris)).to eq(instance.subresource_uris)
91
449
  end
92
450
  end
93
451
 
@@ -27,22 +27,66 @@ describe Freeclimb::QueueResultStatus do
27
27
  end
28
28
  describe 'test attribute "QUEUE_FULL"' do
29
29
  it 'should work' do
30
- expect { Freeclimb::QueueResultStatus::QUEUE_FULL = "queueFull" }.not_to raise_error
31
- end
30
+ expect { Freeclimb::QueueResultStatus::QUEUE_FULL = "queueFull" }.not_to raise_error
32
31
  end
32
+ it 'should serialize to enum' do
33
+ expectedValue = Freeclimb::QueueResultStatus::QUEUE_FULL
34
+ calculatedValue = Freeclimb::QueueResultStatus::build_from_hash("queueFull")
35
+ expect(expectedValue).to eq(calculatedValue)
36
+ end
37
+ it 'should deserialize to string' do
38
+ expectedValue = "queueFull"
39
+ calculatedValue = Freeclimb::QueueResultStatus::QUEUE_FULL
40
+ expect(expectedValue).to eq(calculatedValue)
41
+ end
42
+ end
43
+
33
44
  describe 'test attribute "DEQUEUED"' do
34
45
  it 'should work' do
35
- expect { Freeclimb::QueueResultStatus::DEQUEUED = "dequeued" }.not_to raise_error
36
- end
46
+ expect { Freeclimb::QueueResultStatus::DEQUEUED = "dequeued" }.not_to raise_error
37
47
  end
48
+ it 'should serialize to enum' do
49
+ expectedValue = Freeclimb::QueueResultStatus::DEQUEUED
50
+ calculatedValue = Freeclimb::QueueResultStatus::build_from_hash("dequeued")
51
+ expect(expectedValue).to eq(calculatedValue)
52
+ end
53
+ it 'should deserialize to string' do
54
+ expectedValue = "dequeued"
55
+ calculatedValue = Freeclimb::QueueResultStatus::DEQUEUED
56
+ expect(expectedValue).to eq(calculatedValue)
57
+ end
58
+ end
59
+
38
60
  describe 'test attribute "HANGUP"' do
39
61
  it 'should work' do
40
- expect { Freeclimb::QueueResultStatus::HANGUP = "hangup" }.not_to raise_error
41
- end
62
+ expect { Freeclimb::QueueResultStatus::HANGUP = "hangup" }.not_to raise_error
42
63
  end
64
+ it 'should serialize to enum' do
65
+ expectedValue = Freeclimb::QueueResultStatus::HANGUP
66
+ calculatedValue = Freeclimb::QueueResultStatus::build_from_hash("hangup")
67
+ expect(expectedValue).to eq(calculatedValue)
68
+ end
69
+ it 'should deserialize to string' do
70
+ expectedValue = "hangup"
71
+ calculatedValue = Freeclimb::QueueResultStatus::HANGUP
72
+ expect(expectedValue).to eq(calculatedValue)
73
+ end
74
+ end
75
+
43
76
  describe 'test attribute "SYSTEM_ERROR"' do
44
77
  it 'should work' do
45
- expect { Freeclimb::QueueResultStatus::SYSTEM_ERROR = "systemError" }.not_to raise_error
46
- end
78
+ expect { Freeclimb::QueueResultStatus::SYSTEM_ERROR = "systemError" }.not_to raise_error
47
79
  end
80
+ it 'should serialize to enum' do
81
+ expectedValue = Freeclimb::QueueResultStatus::SYSTEM_ERROR
82
+ calculatedValue = Freeclimb::QueueResultStatus::build_from_hash("systemError")
83
+ expect(expectedValue).to eq(calculatedValue)
84
+ end
85
+ it 'should deserialize to string' do
86
+ expectedValue = "systemError"
87
+ calculatedValue = Freeclimb::QueueResultStatus::SYSTEM_ERROR
88
+ expect(expectedValue).to eq(calculatedValue)
89
+ end
90
+ end
91
+
48
92
  end