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,55 +27,364 @@ describe Freeclimb::GetDigits do
27
27
  end
28
28
  describe 'test attribute "action_url"' do
29
29
  it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
30
+ instance.action_url = "TEST_STRING"
31
+ expect(instance.action_url).to eq("TEST_STRING")
31
32
  end
32
33
  end
33
34
 
34
35
  describe 'test attribute "digit_timeout_ms"' do
35
36
  it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ instance.digit_timeout_ms = 1
38
+ expect(instance.digit_timeout_ms).to eq(1)
37
39
  end
38
40
  end
39
41
 
40
42
  describe 'test attribute "finish_on_key"' do
41
43
  it 'should work' do
42
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ instance.finish_on_key = "TEST_STRING"
45
+ expect(instance.finish_on_key).to eq("TEST_STRING")
43
46
  end
44
47
  end
45
48
 
46
49
  describe 'test attribute "flush_buffer"' do
47
50
  it 'should work' do
48
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
51
+ instance.flush_buffer = false
52
+ expect(instance.flush_buffer).to eq(false)
49
53
  end
50
54
  end
51
55
 
52
56
  describe 'test attribute "initial_timeout_ms"' do
53
57
  it 'should work' do
54
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
+ instance.initial_timeout_ms = "TEST_STRING"
59
+ expect(instance.initial_timeout_ms).to eq("TEST_STRING")
55
60
  end
56
61
  end
57
62
 
58
63
  describe 'test attribute "max_digits"' do
59
64
  it 'should work' do
60
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
+ instance.max_digits = 1
66
+ expect(instance.max_digits).to eq(1)
61
67
  end
62
68
  end
63
69
 
64
70
  describe 'test attribute "min_digits"' do
65
71
  it 'should work' do
66
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
+ instance.min_digits = 1
73
+ expect(instance.min_digits).to eq(1)
67
74
  end
68
75
  end
69
76
 
70
77
  describe 'test attribute "prompts"' do
71
78
  it 'should work' do
72
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
+ instance.prompts = ["ELEMENT_1", "ELEMENT_2"]
80
+ expect(instance.prompts).to eq(["ELEMENT_1", "ELEMENT_2"])
73
81
  end
74
82
  end
75
83
 
76
84
  describe 'test attribute "privacy_mode"' do
77
85
  it 'should work' do
78
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
+ instance.privacy_mode = false
87
+ expect(instance.privacy_mode).to eq(false)
88
+ end
89
+ end
90
+
91
+ describe 'test method "initialize"' do
92
+ it 'properly initializes with values' do
93
+ expect{instance = Freeclimb::GetDigits.new(
94
+ action_url: "TS",
95
+ digit_timeout_ms: 1,
96
+ finish_on_key: "TS",
97
+ flush_buffer: true,
98
+ initial_timeout_ms: "TS",
99
+ max_digits: 1,
100
+ min_digits: 1,
101
+ prompts: Array.new(),
102
+ privacy_mode: true,
103
+ )}.not_to raise_error()
104
+ end
105
+ it 'fails to initialize with input argument that is not a hash in Freeclimb::GetDigits' do
106
+ expect{instance = Freeclimb::GetDigits.new(
107
+ action_url: "TS",
108
+ digit_timeout_ms: 1,
109
+ finish_on_key: "TS",
110
+ flush_buffer: true,
111
+ initial_timeout_ms: "TS",
112
+ max_digits: 1,
113
+ min_digits: 1,
114
+ prompts: Array.new(),
115
+ privacy_mode: true,
116
+ invalid_attribute: true
117
+ )}.to raise_error(ArgumentError)
118
+ end
119
+ it 'fails to initialize with invalid attribute' do
120
+ expect{instance = Freeclimb::GetDigits.new(
121
+ action_url: "TS",
122
+ digit_timeout_ms: 1,
123
+ finish_on_key: "TS",
124
+ flush_buffer: true,
125
+ initial_timeout_ms: "TS",
126
+ max_digits: 1,
127
+ min_digits: 1,
128
+ prompts: Array.new(),
129
+ privacy_mode: true,
130
+ invalid_attribute: true
131
+ )}.to raise_error(ArgumentError)
132
+ end
133
+ end
134
+
135
+ describe 'test method "valid"' do
136
+ it 'checks if properties are valid' do
137
+ instance = Freeclimb::GetDigits.new(
138
+ action_url: "TS",
139
+ digit_timeout_ms: 1,
140
+ finish_on_key: "TS",
141
+ flush_buffer: true,
142
+ initial_timeout_ms: "TS",
143
+ max_digits: 1,
144
+ min_digits: 1,
145
+ prompts: Array.new(),
146
+ privacy_mode: true,
147
+ )
148
+ expect(instance.valid?).to eq(true)
149
+ end
150
+ end
151
+
152
+ describe 'test method "eql?"' do
153
+ it 'checks if objects are equal' do
154
+ obj = Object.new()
155
+ instance_1 = Freeclimb::GetDigits.new(
156
+ action_url: "TS",
157
+ digit_timeout_ms: 1,
158
+ finish_on_key: "TS",
159
+ flush_buffer: true,
160
+ initial_timeout_ms: "TS",
161
+ max_digits: 1,
162
+ min_digits: 1,
163
+ prompts: [],
164
+ privacy_mode: true,
165
+ )
166
+ instance_2 = Freeclimb::GetDigits.new(
167
+ action_url: "TS",
168
+ digit_timeout_ms: 1,
169
+ finish_on_key: "TS",
170
+ flush_buffer: true,
171
+ initial_timeout_ms: "TS",
172
+ max_digits: 1,
173
+ min_digits: 1,
174
+ prompts: [],
175
+ privacy_mode: true,
176
+ )
177
+ expect(instance_1.eql?(instance_2)).to eq(true)
178
+ end
179
+ it 'checks if objects are not equal' do
180
+ instance_1 = Freeclimb::GetDigits.new(
181
+ action_url: "TS",
182
+ digit_timeout_ms: 1,
183
+ finish_on_key: "TS",
184
+ flush_buffer: true,
185
+ initial_timeout_ms: "TS",
186
+ max_digits: 1,
187
+ min_digits: 1,
188
+ prompts: [],
189
+ privacy_mode: true,
190
+ )
191
+ instance_2 = Freeclimb::GetDigits.new(
192
+ action_url: "ST",
193
+ digit_timeout_ms: 0,
194
+ finish_on_key: "ST",
195
+ flush_buffer: false,
196
+ initial_timeout_ms: "ST",
197
+ max_digits: 0,
198
+ min_digits: 0,
199
+ prompts: nil,
200
+ privacy_mode: false,
201
+ )
202
+ expect(instance_1.eql?(instance_2)).to eq(false)
203
+ end
204
+ end
205
+
206
+ describe 'test method "hash"' do
207
+ it 'calculates hash code' do
208
+ instance = Freeclimb::GetDigits.new(
209
+ action_url: "TS",
210
+ digit_timeout_ms: 1,
211
+ finish_on_key: "TS",
212
+ flush_buffer: true,
213
+ initial_timeout_ms: "TS",
214
+ max_digits: 1,
215
+ min_digits: 1,
216
+ prompts: Array.new(),
217
+ privacy_mode: true,
218
+ )
219
+ expect(instance.hash).to be_a_kind_of(Integer)
220
+ end
221
+ end
222
+
223
+ describe 'test method "build_from_hash"' do
224
+ it 'builds equivalent model from hash code' do
225
+ instance_1 = Freeclimb::GetDigits.new(
226
+ action_url: "TS",
227
+ digit_timeout_ms: 1,
228
+ finish_on_key: "TS",
229
+ flush_buffer: true,
230
+ initial_timeout_ms: "TS",
231
+ max_digits: 1,
232
+ min_digits: 1,
233
+ prompts: Array.new(),
234
+ privacy_mode: true,
235
+ )
236
+ instance_2 = Freeclimb::GetDigits.new
237
+ expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
238
+ end
239
+ end
240
+
241
+ describe 'test method "_deserialize"' do
242
+ instance = Freeclimb::GetDigits.new(
243
+ action_url: "TS",
244
+ digit_timeout_ms: 1,
245
+ finish_on_key: "TS",
246
+ flush_buffer: true,
247
+ initial_timeout_ms: "TS",
248
+ max_digits: 1,
249
+ min_digits: 1,
250
+ prompts: Array.new(),
251
+ privacy_mode: true,
252
+ )
253
+ it 'deserializes the data of action_url' do
254
+ expect(instance._deserialize("String", instance.action_url)).to be_a_kind_of(String)
255
+ end
256
+ it 'deserializes the data of digit_timeout_ms' do
257
+ expect(instance._deserialize("Integer", instance.digit_timeout_ms)).to be_a_kind_of(Integer)
258
+ end
259
+ it 'deserializes the data of finish_on_key' do
260
+ expect(instance._deserialize("String", instance.finish_on_key)).to be_a_kind_of(String)
261
+ end
262
+ it 'deserializes the data of flush_buffer' do
263
+ expect(instance._deserialize("Boolean", instance.flush_buffer)).to be_a_kind_of(TrueClass)
264
+ end
265
+ it 'deserializes the data of initial_timeout_ms' do
266
+ expect(instance._deserialize("String", instance.initial_timeout_ms)).to be_a_kind_of(String)
267
+ end
268
+ it 'deserializes the data of max_digits' do
269
+ expect(instance._deserialize("Integer", instance.max_digits)).to be_a_kind_of(Integer)
270
+ end
271
+ it 'deserializes the data of min_digits' do
272
+ expect(instance._deserialize("Integer", instance.min_digits)).to be_a_kind_of(Integer)
273
+ end
274
+ it 'deserializes the data of prompts' do
275
+ expect(instance._deserialize("Array<PerclCommand>", instance.prompts)).to be_a_kind_of(Array)
276
+ end
277
+ it 'deserializes the data of privacy_mode' do
278
+ expect(instance._deserialize("Boolean", instance.privacy_mode)).to be_a_kind_of(TrueClass)
279
+ end
280
+ end
281
+
282
+ describe 'test method "to_s"' do
283
+ it 'returns the string representation of the object' do
284
+ instance = Freeclimb::GetDigits.new(
285
+ action_url: "TS",
286
+ digit_timeout_ms: 1,
287
+ finish_on_key: "TS",
288
+ flush_buffer: true,
289
+ initial_timeout_ms: "TS",
290
+ max_digits: 1,
291
+ min_digits: 1,
292
+ prompts: Array.new(),
293
+ privacy_mode: true,
294
+ )
295
+ expect(instance.to_s).to eq(instance.to_hash.to_s)
296
+ end
297
+ end
298
+
299
+ describe 'test method "to_hash"' do
300
+ it 'returns the object in the form of hash' do
301
+ instance = Freeclimb::GetDigits.new(
302
+ action_url: "TS",
303
+ digit_timeout_ms: 1,
304
+ finish_on_key: "TS",
305
+ flush_buffer: true,
306
+ initial_timeout_ms: "TS",
307
+ max_digits: 1,
308
+ min_digits: 1,
309
+ prompts: Array.new(),
310
+ privacy_mode: true,
311
+ )
312
+ expect(instance.to_hash).to be_a_kind_of(Hash)
313
+ end
314
+ it 'creates equal hash for two equal objects' do
315
+ obj = Object.new()
316
+ instance_1 = Freeclimb::GetDigits.new(
317
+ action_url: "TS",
318
+ digit_timeout_ms: 1,
319
+ finish_on_key: "TS",
320
+ flush_buffer: true,
321
+ initial_timeout_ms: "TS",
322
+ max_digits: 1,
323
+ min_digits: 1,
324
+ prompts: Array.new(),
325
+ privacy_mode: true,
326
+ )
327
+ instance_2 = Freeclimb::GetDigits.new(
328
+ action_url: "TS",
329
+ digit_timeout_ms: 1,
330
+ finish_on_key: "TS",
331
+ flush_buffer: true,
332
+ initial_timeout_ms: "TS",
333
+ max_digits: 1,
334
+ min_digits: 1,
335
+ prompts: Array.new(),
336
+ privacy_mode: true,
337
+ )
338
+ expect(instance_1.to_hash).to eq(instance_2.to_hash)
339
+ end
340
+ end
341
+
342
+ describe 'test method "_to_hash"' do
343
+ instance = Freeclimb::GetDigits.new(
344
+ action_url: "TS",
345
+
346
+ digit_timeout_ms: 1,
347
+
348
+ finish_on_key: "TS",
349
+
350
+ flush_buffer: true,
351
+
352
+ initial_timeout_ms: "TS",
353
+
354
+ max_digits: 1,
355
+
356
+ min_digits: 1,
357
+
358
+ prompts: Array.new(),
359
+
360
+ privacy_mode: true,
361
+ )
362
+ it 'returns action_url in the form of hash' do
363
+ expect(instance._to_hash(instance.action_url)).to eq(instance.action_url)
364
+ end
365
+ it 'returns digit_timeout_ms in the form of hash' do
366
+ expect(instance._to_hash(instance.digit_timeout_ms)).to eq(instance.digit_timeout_ms)
367
+ end
368
+ it 'returns finish_on_key in the form of hash' do
369
+ expect(instance._to_hash(instance.finish_on_key)).to eq(instance.finish_on_key)
370
+ end
371
+ it 'returns flush_buffer in the form of hash' do
372
+ expect(instance._to_hash(instance.flush_buffer)).to eq(instance.flush_buffer)
373
+ end
374
+ it 'returns initial_timeout_ms in the form of hash' do
375
+ expect(instance._to_hash(instance.initial_timeout_ms)).to eq(instance.initial_timeout_ms)
376
+ end
377
+ it 'returns max_digits in the form of hash' do
378
+ expect(instance._to_hash(instance.max_digits)).to eq(instance.max_digits)
379
+ end
380
+ it 'returns min_digits in the form of hash' do
381
+ expect(instance._to_hash(instance.min_digits)).to eq(instance.min_digits)
382
+ end
383
+ it 'returns prompts in the form of hash' do
384
+ expect(instance._to_hash(instance.prompts)).to eq(instance.prompts)
385
+ end
386
+ it 'returns privacy_mode in the form of hash' do
387
+ expect(instance._to_hash(instance.privacy_mode)).to eq(instance.privacy_mode)
79
388
  end
80
389
  end
81
390
 
@@ -27,32 +27,98 @@ describe Freeclimb::GetSpeechReason do
27
27
  end
28
28
  describe 'test attribute "ERROR"' do
29
29
  it 'should work' do
30
- expect { Freeclimb::GetSpeechReason::ERROR = "error" }.not_to raise_error
31
- end
30
+ expect { Freeclimb::GetSpeechReason::ERROR = "error" }.not_to raise_error
32
31
  end
32
+ it 'should serialize to enum' do
33
+ expectedValue = Freeclimb::GetSpeechReason::ERROR
34
+ calculatedValue = Freeclimb::GetSpeechReason::build_from_hash("error")
35
+ expect(expectedValue).to eq(calculatedValue)
36
+ end
37
+ it 'should deserialize to string' do
38
+ expectedValue = "error"
39
+ calculatedValue = Freeclimb::GetSpeechReason::ERROR
40
+ expect(expectedValue).to eq(calculatedValue)
41
+ end
42
+ end
43
+
33
44
  describe 'test attribute "HANGUP"' do
34
45
  it 'should work' do
35
- expect { Freeclimb::GetSpeechReason::HANGUP = "hangup" }.not_to raise_error
36
- end
46
+ expect { Freeclimb::GetSpeechReason::HANGUP = "hangup" }.not_to raise_error
47
+ end
48
+ it 'should serialize to enum' do
49
+ expectedValue = Freeclimb::GetSpeechReason::HANGUP
50
+ calculatedValue = Freeclimb::GetSpeechReason::build_from_hash("hangup")
51
+ expect(expectedValue).to eq(calculatedValue)
52
+ end
53
+ it 'should deserialize to string' do
54
+ expectedValue = "hangup"
55
+ calculatedValue = Freeclimb::GetSpeechReason::HANGUP
56
+ expect(expectedValue).to eq(calculatedValue)
37
57
  end
58
+ end
59
+
38
60
  describe 'test attribute "DIGIT"' do
39
61
  it 'should work' do
40
- expect { Freeclimb::GetSpeechReason::DIGIT = "digit" }.not_to raise_error
41
- end
62
+ expect { Freeclimb::GetSpeechReason::DIGIT = "digit" }.not_to raise_error
63
+ end
64
+ it 'should serialize to enum' do
65
+ expectedValue = Freeclimb::GetSpeechReason::DIGIT
66
+ calculatedValue = Freeclimb::GetSpeechReason::build_from_hash("digit")
67
+ expect(expectedValue).to eq(calculatedValue)
42
68
  end
69
+ it 'should deserialize to string' do
70
+ expectedValue = "digit"
71
+ calculatedValue = Freeclimb::GetSpeechReason::DIGIT
72
+ expect(expectedValue).to eq(calculatedValue)
73
+ end
74
+ end
75
+
43
76
  describe 'test attribute "NO_INPUT"' do
44
77
  it 'should work' do
45
- expect { Freeclimb::GetSpeechReason::NO_INPUT = "noInput" }.not_to raise_error
46
- end
78
+ expect { Freeclimb::GetSpeechReason::NO_INPUT = "noInput" }.not_to raise_error
47
79
  end
80
+ it 'should serialize to enum' do
81
+ expectedValue = Freeclimb::GetSpeechReason::NO_INPUT
82
+ calculatedValue = Freeclimb::GetSpeechReason::build_from_hash("noInput")
83
+ expect(expectedValue).to eq(calculatedValue)
84
+ end
85
+ it 'should deserialize to string' do
86
+ expectedValue = "noInput"
87
+ calculatedValue = Freeclimb::GetSpeechReason::NO_INPUT
88
+ expect(expectedValue).to eq(calculatedValue)
89
+ end
90
+ end
91
+
48
92
  describe 'test attribute "NO_MATCH"' do
49
93
  it 'should work' do
50
- expect { Freeclimb::GetSpeechReason::NO_MATCH = "noMatch" }.not_to raise_error
51
- end
94
+ expect { Freeclimb::GetSpeechReason::NO_MATCH = "noMatch" }.not_to raise_error
95
+ end
96
+ it 'should serialize to enum' do
97
+ expectedValue = Freeclimb::GetSpeechReason::NO_MATCH
98
+ calculatedValue = Freeclimb::GetSpeechReason::build_from_hash("noMatch")
99
+ expect(expectedValue).to eq(calculatedValue)
100
+ end
101
+ it 'should deserialize to string' do
102
+ expectedValue = "noMatch"
103
+ calculatedValue = Freeclimb::GetSpeechReason::NO_MATCH
104
+ expect(expectedValue).to eq(calculatedValue)
52
105
  end
106
+ end
107
+
53
108
  describe 'test attribute "RECOGNITION"' do
54
109
  it 'should work' do
55
- expect { Freeclimb::GetSpeechReason::RECOGNITION = "recognition" }.not_to raise_error
56
- end
110
+ expect { Freeclimb::GetSpeechReason::RECOGNITION = "recognition" }.not_to raise_error
111
+ end
112
+ it 'should serialize to enum' do
113
+ expectedValue = Freeclimb::GetSpeechReason::RECOGNITION
114
+ calculatedValue = Freeclimb::GetSpeechReason::build_from_hash("recognition")
115
+ expect(expectedValue).to eq(calculatedValue)
57
116
  end
117
+ it 'should deserialize to string' do
118
+ expectedValue = "recognition"
119
+ calculatedValue = Freeclimb::GetSpeechReason::RECOGNITION
120
+ expect(expectedValue).to eq(calculatedValue)
121
+ end
122
+ end
123
+
58
124
  end