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