freeclimb 4.4.0 → 4.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -2
- data/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/docs/AddToConference.md +1 -1
- data/docs/AddToConferenceAllOf.md +1 -1
- data/lib/freeclimb/models/add_to_conference.rb +1 -1
- data/lib/freeclimb/models/add_to_conference_all_of.rb +1 -1
- data/lib/freeclimb/version.rb +1 -1
- data/openapi.json +161 -60
- 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,132 +27,418 @@ describe Freeclimb::Language do
|
|
27
27
|
end
|
28
28
|
describe 'test attribute "CATALAN"' do
|
29
29
|
it 'should work' do
|
30
|
-
|
31
|
-
end
|
30
|
+
expect { Freeclimb::Language::CATALAN = "ca-ES" }.not_to raise_error
|
32
31
|
end
|
32
|
+
it 'should serialize to enum' do
|
33
|
+
expectedValue = Freeclimb::Language::CATALAN
|
34
|
+
calculatedValue = Freeclimb::Language::build_from_hash("ca-ES")
|
35
|
+
expect(expectedValue).to eq(calculatedValue)
|
36
|
+
end
|
37
|
+
it 'should deserialize to string' do
|
38
|
+
expectedValue = "ca-ES"
|
39
|
+
calculatedValue = Freeclimb::Language::CATALAN
|
40
|
+
expect(expectedValue).to eq(calculatedValue)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
33
44
|
describe 'test attribute "DANISH"' do
|
34
45
|
it 'should work' do
|
35
|
-
|
36
|
-
end
|
46
|
+
expect { Freeclimb::Language::DANISH = "da-DK" }.not_to raise_error
|
37
47
|
end
|
48
|
+
it 'should serialize to enum' do
|
49
|
+
expectedValue = Freeclimb::Language::DANISH
|
50
|
+
calculatedValue = Freeclimb::Language::build_from_hash("da-DK")
|
51
|
+
expect(expectedValue).to eq(calculatedValue)
|
52
|
+
end
|
53
|
+
it 'should deserialize to string' do
|
54
|
+
expectedValue = "da-DK"
|
55
|
+
calculatedValue = Freeclimb::Language::DANISH
|
56
|
+
expect(expectedValue).to eq(calculatedValue)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
38
60
|
describe 'test attribute "GERMAN"' do
|
39
61
|
it 'should work' do
|
40
|
-
|
41
|
-
|
62
|
+
expect { Freeclimb::Language::GERMAN = "de-DE" }.not_to raise_error
|
63
|
+
end
|
64
|
+
it 'should serialize to enum' do
|
65
|
+
expectedValue = Freeclimb::Language::GERMAN
|
66
|
+
calculatedValue = Freeclimb::Language::build_from_hash("de-DE")
|
67
|
+
expect(expectedValue).to eq(calculatedValue)
|
68
|
+
end
|
69
|
+
it 'should deserialize to string' do
|
70
|
+
expectedValue = "de-DE"
|
71
|
+
calculatedValue = Freeclimb::Language::GERMAN
|
72
|
+
expect(expectedValue).to eq(calculatedValue)
|
42
73
|
end
|
74
|
+
end
|
75
|
+
|
43
76
|
describe 'test attribute "ENGLISH_AU"' do
|
44
77
|
it 'should work' do
|
45
|
-
|
46
|
-
|
78
|
+
expect { Freeclimb::Language::ENGLISH_AU = "en-AU" }.not_to raise_error
|
79
|
+
end
|
80
|
+
it 'should serialize to enum' do
|
81
|
+
expectedValue = Freeclimb::Language::ENGLISH_AU
|
82
|
+
calculatedValue = Freeclimb::Language::build_from_hash("en-AU")
|
83
|
+
expect(expectedValue).to eq(calculatedValue)
|
47
84
|
end
|
85
|
+
it 'should deserialize to string' do
|
86
|
+
expectedValue = "en-AU"
|
87
|
+
calculatedValue = Freeclimb::Language::ENGLISH_AU
|
88
|
+
expect(expectedValue).to eq(calculatedValue)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
48
92
|
describe 'test attribute "ENGLISH_CA"' do
|
49
93
|
it 'should work' do
|
50
|
-
|
51
|
-
|
94
|
+
expect { Freeclimb::Language::ENGLISH_CA = "en-CA" }.not_to raise_error
|
95
|
+
end
|
96
|
+
it 'should serialize to enum' do
|
97
|
+
expectedValue = Freeclimb::Language::ENGLISH_CA
|
98
|
+
calculatedValue = Freeclimb::Language::build_from_hash("en-CA")
|
99
|
+
expect(expectedValue).to eq(calculatedValue)
|
52
100
|
end
|
101
|
+
it 'should deserialize to string' do
|
102
|
+
expectedValue = "en-CA"
|
103
|
+
calculatedValue = Freeclimb::Language::ENGLISH_CA
|
104
|
+
expect(expectedValue).to eq(calculatedValue)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
53
108
|
describe 'test attribute "ENGLISH_UK"' do
|
54
109
|
it 'should work' do
|
55
|
-
|
56
|
-
end
|
110
|
+
expect { Freeclimb::Language::ENGLISH_UK = "en-GB" }.not_to raise_error
|
57
111
|
end
|
112
|
+
it 'should serialize to enum' do
|
113
|
+
expectedValue = Freeclimb::Language::ENGLISH_UK
|
114
|
+
calculatedValue = Freeclimb::Language::build_from_hash("en-GB")
|
115
|
+
expect(expectedValue).to eq(calculatedValue)
|
116
|
+
end
|
117
|
+
it 'should deserialize to string' do
|
118
|
+
expectedValue = "en-GB"
|
119
|
+
calculatedValue = Freeclimb::Language::ENGLISH_UK
|
120
|
+
expect(expectedValue).to eq(calculatedValue)
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
58
124
|
describe 'test attribute "ENGLISH_IN"' do
|
59
125
|
it 'should work' do
|
60
|
-
|
61
|
-
|
126
|
+
expect { Freeclimb::Language::ENGLISH_IN = "en-IN" }.not_to raise_error
|
127
|
+
end
|
128
|
+
it 'should serialize to enum' do
|
129
|
+
expectedValue = Freeclimb::Language::ENGLISH_IN
|
130
|
+
calculatedValue = Freeclimb::Language::build_from_hash("en-IN")
|
131
|
+
expect(expectedValue).to eq(calculatedValue)
|
132
|
+
end
|
133
|
+
it 'should deserialize to string' do
|
134
|
+
expectedValue = "en-IN"
|
135
|
+
calculatedValue = Freeclimb::Language::ENGLISH_IN
|
136
|
+
expect(expectedValue).to eq(calculatedValue)
|
62
137
|
end
|
138
|
+
end
|
139
|
+
|
63
140
|
describe 'test attribute "ENGLISH_US"' do
|
64
141
|
it 'should work' do
|
65
|
-
|
66
|
-
|
142
|
+
expect { Freeclimb::Language::ENGLISH_US = "en-US" }.not_to raise_error
|
143
|
+
end
|
144
|
+
it 'should serialize to enum' do
|
145
|
+
expectedValue = Freeclimb::Language::ENGLISH_US
|
146
|
+
calculatedValue = Freeclimb::Language::build_from_hash("en-US")
|
147
|
+
expect(expectedValue).to eq(calculatedValue)
|
148
|
+
end
|
149
|
+
it 'should deserialize to string' do
|
150
|
+
expectedValue = "en-US"
|
151
|
+
calculatedValue = Freeclimb::Language::ENGLISH_US
|
152
|
+
expect(expectedValue).to eq(calculatedValue)
|
67
153
|
end
|
154
|
+
end
|
155
|
+
|
68
156
|
describe 'test attribute "ENGLISH_ES"' do
|
69
157
|
it 'should work' do
|
70
|
-
|
71
|
-
|
158
|
+
expect { Freeclimb::Language::ENGLISH_ES = "es-ES" }.not_to raise_error
|
159
|
+
end
|
160
|
+
it 'should serialize to enum' do
|
161
|
+
expectedValue = Freeclimb::Language::ENGLISH_ES
|
162
|
+
calculatedValue = Freeclimb::Language::build_from_hash("es-ES")
|
163
|
+
expect(expectedValue).to eq(calculatedValue)
|
72
164
|
end
|
165
|
+
it 'should deserialize to string' do
|
166
|
+
expectedValue = "es-ES"
|
167
|
+
calculatedValue = Freeclimb::Language::ENGLISH_ES
|
168
|
+
expect(expectedValue).to eq(calculatedValue)
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
73
172
|
describe 'test attribute "ENGLISH_MX"' do
|
74
173
|
it 'should work' do
|
75
|
-
|
76
|
-
end
|
174
|
+
expect { Freeclimb::Language::ENGLISH_MX = "es-MX" }.not_to raise_error
|
77
175
|
end
|
176
|
+
it 'should serialize to enum' do
|
177
|
+
expectedValue = Freeclimb::Language::ENGLISH_MX
|
178
|
+
calculatedValue = Freeclimb::Language::build_from_hash("es-MX")
|
179
|
+
expect(expectedValue).to eq(calculatedValue)
|
180
|
+
end
|
181
|
+
it 'should deserialize to string' do
|
182
|
+
expectedValue = "es-MX"
|
183
|
+
calculatedValue = Freeclimb::Language::ENGLISH_MX
|
184
|
+
expect(expectedValue).to eq(calculatedValue)
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
78
188
|
describe 'test attribute "FINNISH"' do
|
79
189
|
it 'should work' do
|
80
|
-
|
81
|
-
|
190
|
+
expect { Freeclimb::Language::FINNISH = "fi-FI" }.not_to raise_error
|
191
|
+
end
|
192
|
+
it 'should serialize to enum' do
|
193
|
+
expectedValue = Freeclimb::Language::FINNISH
|
194
|
+
calculatedValue = Freeclimb::Language::build_from_hash("fi-FI")
|
195
|
+
expect(expectedValue).to eq(calculatedValue)
|
82
196
|
end
|
197
|
+
it 'should deserialize to string' do
|
198
|
+
expectedValue = "fi-FI"
|
199
|
+
calculatedValue = Freeclimb::Language::FINNISH
|
200
|
+
expect(expectedValue).to eq(calculatedValue)
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
83
204
|
describe 'test attribute "FRENCH_CA"' do
|
84
205
|
it 'should work' do
|
85
|
-
|
86
|
-
|
206
|
+
expect { Freeclimb::Language::FRENCH_CA = "fr-CA" }.not_to raise_error
|
207
|
+
end
|
208
|
+
it 'should serialize to enum' do
|
209
|
+
expectedValue = Freeclimb::Language::FRENCH_CA
|
210
|
+
calculatedValue = Freeclimb::Language::build_from_hash("fr-CA")
|
211
|
+
expect(expectedValue).to eq(calculatedValue)
|
212
|
+
end
|
213
|
+
it 'should deserialize to string' do
|
214
|
+
expectedValue = "fr-CA"
|
215
|
+
calculatedValue = Freeclimb::Language::FRENCH_CA
|
216
|
+
expect(expectedValue).to eq(calculatedValue)
|
87
217
|
end
|
218
|
+
end
|
219
|
+
|
88
220
|
describe 'test attribute "FRENCH_FR"' do
|
89
221
|
it 'should work' do
|
90
|
-
|
91
|
-
|
222
|
+
expect { Freeclimb::Language::FRENCH_FR = "fr-FR" }.not_to raise_error
|
223
|
+
end
|
224
|
+
it 'should serialize to enum' do
|
225
|
+
expectedValue = Freeclimb::Language::FRENCH_FR
|
226
|
+
calculatedValue = Freeclimb::Language::build_from_hash("fr-FR")
|
227
|
+
expect(expectedValue).to eq(calculatedValue)
|
92
228
|
end
|
229
|
+
it 'should deserialize to string' do
|
230
|
+
expectedValue = "fr-FR"
|
231
|
+
calculatedValue = Freeclimb::Language::FRENCH_FR
|
232
|
+
expect(expectedValue).to eq(calculatedValue)
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
93
236
|
describe 'test attribute "ITALIAN"' do
|
94
237
|
it 'should work' do
|
95
|
-
|
96
|
-
end
|
238
|
+
expect { Freeclimb::Language::ITALIAN = "it-IT" }.not_to raise_error
|
97
239
|
end
|
240
|
+
it 'should serialize to enum' do
|
241
|
+
expectedValue = Freeclimb::Language::ITALIAN
|
242
|
+
calculatedValue = Freeclimb::Language::build_from_hash("it-IT")
|
243
|
+
expect(expectedValue).to eq(calculatedValue)
|
244
|
+
end
|
245
|
+
it 'should deserialize to string' do
|
246
|
+
expectedValue = "it-IT"
|
247
|
+
calculatedValue = Freeclimb::Language::ITALIAN
|
248
|
+
expect(expectedValue).to eq(calculatedValue)
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
98
252
|
describe 'test attribute "JAPANESE"' do
|
99
253
|
it 'should work' do
|
100
|
-
|
101
|
-
end
|
254
|
+
expect { Freeclimb::Language::JAPANESE = "ja-JP" }.not_to raise_error
|
102
255
|
end
|
256
|
+
it 'should serialize to enum' do
|
257
|
+
expectedValue = Freeclimb::Language::JAPANESE
|
258
|
+
calculatedValue = Freeclimb::Language::build_from_hash("ja-JP")
|
259
|
+
expect(expectedValue).to eq(calculatedValue)
|
260
|
+
end
|
261
|
+
it 'should deserialize to string' do
|
262
|
+
expectedValue = "ja-JP"
|
263
|
+
calculatedValue = Freeclimb::Language::JAPANESE
|
264
|
+
expect(expectedValue).to eq(calculatedValue)
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
103
268
|
describe 'test attribute "KOREAN"' do
|
104
269
|
it 'should work' do
|
105
|
-
|
106
|
-
|
270
|
+
expect { Freeclimb::Language::KOREAN = "ko-KR" }.not_to raise_error
|
271
|
+
end
|
272
|
+
it 'should serialize to enum' do
|
273
|
+
expectedValue = Freeclimb::Language::KOREAN
|
274
|
+
calculatedValue = Freeclimb::Language::build_from_hash("ko-KR")
|
275
|
+
expect(expectedValue).to eq(calculatedValue)
|
276
|
+
end
|
277
|
+
it 'should deserialize to string' do
|
278
|
+
expectedValue = "ko-KR"
|
279
|
+
calculatedValue = Freeclimb::Language::KOREAN
|
280
|
+
expect(expectedValue).to eq(calculatedValue)
|
107
281
|
end
|
282
|
+
end
|
283
|
+
|
108
284
|
describe 'test attribute "NORWEGIAN"' do
|
109
285
|
it 'should work' do
|
110
|
-
|
111
|
-
|
286
|
+
expect { Freeclimb::Language::NORWEGIAN = "nb-NO" }.not_to raise_error
|
287
|
+
end
|
288
|
+
it 'should serialize to enum' do
|
289
|
+
expectedValue = Freeclimb::Language::NORWEGIAN
|
290
|
+
calculatedValue = Freeclimb::Language::build_from_hash("nb-NO")
|
291
|
+
expect(expectedValue).to eq(calculatedValue)
|
112
292
|
end
|
293
|
+
it 'should deserialize to string' do
|
294
|
+
expectedValue = "nb-NO"
|
295
|
+
calculatedValue = Freeclimb::Language::NORWEGIAN
|
296
|
+
expect(expectedValue).to eq(calculatedValue)
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
113
300
|
describe 'test attribute "DUTCH"' do
|
114
301
|
it 'should work' do
|
115
|
-
|
116
|
-
|
302
|
+
expect { Freeclimb::Language::DUTCH = "nl-NL" }.not_to raise_error
|
303
|
+
end
|
304
|
+
it 'should serialize to enum' do
|
305
|
+
expectedValue = Freeclimb::Language::DUTCH
|
306
|
+
calculatedValue = Freeclimb::Language::build_from_hash("nl-NL")
|
307
|
+
expect(expectedValue).to eq(calculatedValue)
|
117
308
|
end
|
309
|
+
it 'should deserialize to string' do
|
310
|
+
expectedValue = "nl-NL"
|
311
|
+
calculatedValue = Freeclimb::Language::DUTCH
|
312
|
+
expect(expectedValue).to eq(calculatedValue)
|
313
|
+
end
|
314
|
+
end
|
315
|
+
|
118
316
|
describe 'test attribute "POLISH"' do
|
119
317
|
it 'should work' do
|
120
|
-
|
121
|
-
end
|
318
|
+
expect { Freeclimb::Language::POLISH = "pl-PL" }.not_to raise_error
|
122
319
|
end
|
320
|
+
it 'should serialize to enum' do
|
321
|
+
expectedValue = Freeclimb::Language::POLISH
|
322
|
+
calculatedValue = Freeclimb::Language::build_from_hash("pl-PL")
|
323
|
+
expect(expectedValue).to eq(calculatedValue)
|
324
|
+
end
|
325
|
+
it 'should deserialize to string' do
|
326
|
+
expectedValue = "pl-PL"
|
327
|
+
calculatedValue = Freeclimb::Language::POLISH
|
328
|
+
expect(expectedValue).to eq(calculatedValue)
|
329
|
+
end
|
330
|
+
end
|
331
|
+
|
123
332
|
describe 'test attribute "PORTUGESE_BR"' do
|
124
333
|
it 'should work' do
|
125
|
-
|
126
|
-
|
334
|
+
expect { Freeclimb::Language::PORTUGESE_BR = "pt-BR" }.not_to raise_error
|
335
|
+
end
|
336
|
+
it 'should serialize to enum' do
|
337
|
+
expectedValue = Freeclimb::Language::PORTUGESE_BR
|
338
|
+
calculatedValue = Freeclimb::Language::build_from_hash("pt-BR")
|
339
|
+
expect(expectedValue).to eq(calculatedValue)
|
340
|
+
end
|
341
|
+
it 'should deserialize to string' do
|
342
|
+
expectedValue = "pt-BR"
|
343
|
+
calculatedValue = Freeclimb::Language::PORTUGESE_BR
|
344
|
+
expect(expectedValue).to eq(calculatedValue)
|
127
345
|
end
|
346
|
+
end
|
347
|
+
|
128
348
|
describe 'test attribute "PORTUGESE_PT"' do
|
129
349
|
it 'should work' do
|
130
|
-
|
131
|
-
|
350
|
+
expect { Freeclimb::Language::PORTUGESE_PT = "pt-PT" }.not_to raise_error
|
351
|
+
end
|
352
|
+
it 'should serialize to enum' do
|
353
|
+
expectedValue = Freeclimb::Language::PORTUGESE_PT
|
354
|
+
calculatedValue = Freeclimb::Language::build_from_hash("pt-PT")
|
355
|
+
expect(expectedValue).to eq(calculatedValue)
|
356
|
+
end
|
357
|
+
it 'should deserialize to string' do
|
358
|
+
expectedValue = "pt-PT"
|
359
|
+
calculatedValue = Freeclimb::Language::PORTUGESE_PT
|
360
|
+
expect(expectedValue).to eq(calculatedValue)
|
132
361
|
end
|
362
|
+
end
|
363
|
+
|
133
364
|
describe 'test attribute "RUSSIAN"' do
|
134
365
|
it 'should work' do
|
135
|
-
|
136
|
-
|
366
|
+
expect { Freeclimb::Language::RUSSIAN = "ru-RU" }.not_to raise_error
|
367
|
+
end
|
368
|
+
it 'should serialize to enum' do
|
369
|
+
expectedValue = Freeclimb::Language::RUSSIAN
|
370
|
+
calculatedValue = Freeclimb::Language::build_from_hash("ru-RU")
|
371
|
+
expect(expectedValue).to eq(calculatedValue)
|
137
372
|
end
|
373
|
+
it 'should deserialize to string' do
|
374
|
+
expectedValue = "ru-RU"
|
375
|
+
calculatedValue = Freeclimb::Language::RUSSIAN
|
376
|
+
expect(expectedValue).to eq(calculatedValue)
|
377
|
+
end
|
378
|
+
end
|
379
|
+
|
138
380
|
describe 'test attribute "SWEDISH"' do
|
139
381
|
it 'should work' do
|
140
|
-
|
141
|
-
end
|
382
|
+
expect { Freeclimb::Language::SWEDISH = "sv-SE" }.not_to raise_error
|
142
383
|
end
|
384
|
+
it 'should serialize to enum' do
|
385
|
+
expectedValue = Freeclimb::Language::SWEDISH
|
386
|
+
calculatedValue = Freeclimb::Language::build_from_hash("sv-SE")
|
387
|
+
expect(expectedValue).to eq(calculatedValue)
|
388
|
+
end
|
389
|
+
it 'should deserialize to string' do
|
390
|
+
expectedValue = "sv-SE"
|
391
|
+
calculatedValue = Freeclimb::Language::SWEDISH
|
392
|
+
expect(expectedValue).to eq(calculatedValue)
|
393
|
+
end
|
394
|
+
end
|
395
|
+
|
143
396
|
describe 'test attribute "CHINESE_CN"' do
|
144
397
|
it 'should work' do
|
145
|
-
|
146
|
-
|
398
|
+
expect { Freeclimb::Language::CHINESE_CN = "zh-CN" }.not_to raise_error
|
399
|
+
end
|
400
|
+
it 'should serialize to enum' do
|
401
|
+
expectedValue = Freeclimb::Language::CHINESE_CN
|
402
|
+
calculatedValue = Freeclimb::Language::build_from_hash("zh-CN")
|
403
|
+
expect(expectedValue).to eq(calculatedValue)
|
147
404
|
end
|
405
|
+
it 'should deserialize to string' do
|
406
|
+
expectedValue = "zh-CN"
|
407
|
+
calculatedValue = Freeclimb::Language::CHINESE_CN
|
408
|
+
expect(expectedValue).to eq(calculatedValue)
|
409
|
+
end
|
410
|
+
end
|
411
|
+
|
148
412
|
describe 'test attribute "CHINESE_HK"' do
|
149
413
|
it 'should work' do
|
150
|
-
|
151
|
-
|
414
|
+
expect { Freeclimb::Language::CHINESE_HK = "zh-HK" }.not_to raise_error
|
415
|
+
end
|
416
|
+
it 'should serialize to enum' do
|
417
|
+
expectedValue = Freeclimb::Language::CHINESE_HK
|
418
|
+
calculatedValue = Freeclimb::Language::build_from_hash("zh-HK")
|
419
|
+
expect(expectedValue).to eq(calculatedValue)
|
420
|
+
end
|
421
|
+
it 'should deserialize to string' do
|
422
|
+
expectedValue = "zh-HK"
|
423
|
+
calculatedValue = Freeclimb::Language::CHINESE_HK
|
424
|
+
expect(expectedValue).to eq(calculatedValue)
|
152
425
|
end
|
426
|
+
end
|
427
|
+
|
153
428
|
describe 'test attribute "CHINESE_TW"' do
|
154
429
|
it 'should work' do
|
155
|
-
|
156
|
-
|
430
|
+
expect { Freeclimb::Language::CHINESE_TW = "zh-TW" }.not_to raise_error
|
431
|
+
end
|
432
|
+
it 'should serialize to enum' do
|
433
|
+
expectedValue = Freeclimb::Language::CHINESE_TW
|
434
|
+
calculatedValue = Freeclimb::Language::build_from_hash("zh-TW")
|
435
|
+
expect(expectedValue).to eq(calculatedValue)
|
157
436
|
end
|
437
|
+
it 'should deserialize to string' do
|
438
|
+
expectedValue = "zh-TW"
|
439
|
+
calculatedValue = Freeclimb::Language::CHINESE_TW
|
440
|
+
expect(expectedValue).to eq(calculatedValue)
|
441
|
+
end
|
442
|
+
end
|
443
|
+
|
158
444
|
end
|
@@ -27,17 +27,50 @@ describe Freeclimb::LogLevel do
|
|
27
27
|
end
|
28
28
|
describe 'test attribute "INFO"' do
|
29
29
|
it 'should work' do
|
30
|
-
|
31
|
-
end
|
30
|
+
expect { Freeclimb::LogLevel::INFO = "info" }.not_to raise_error
|
32
31
|
end
|
32
|
+
it 'should serialize to enum' do
|
33
|
+
expectedValue = Freeclimb::LogLevel::INFO
|
34
|
+
calculatedValue = Freeclimb::LogLevel::build_from_hash("info")
|
35
|
+
expect(expectedValue).to eq(calculatedValue)
|
36
|
+
end
|
37
|
+
it 'should deserialize to string' do
|
38
|
+
expectedValue = "info"
|
39
|
+
calculatedValue = Freeclimb::LogLevel::INFO
|
40
|
+
expect(expectedValue).to eq(calculatedValue)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
33
44
|
describe 'test attribute "WARNING"' do
|
34
45
|
it 'should work' do
|
35
|
-
|
36
|
-
|
46
|
+
expect { Freeclimb::LogLevel::WARNING = "warning" }.not_to raise_error
|
47
|
+
end
|
48
|
+
it 'should serialize to enum' do
|
49
|
+
expectedValue = Freeclimb::LogLevel::WARNING
|
50
|
+
calculatedValue = Freeclimb::LogLevel::build_from_hash("warning")
|
51
|
+
expect(expectedValue).to eq(calculatedValue)
|
52
|
+
end
|
53
|
+
it 'should deserialize to string' do
|
54
|
+
expectedValue = "warning"
|
55
|
+
calculatedValue = Freeclimb::LogLevel::WARNING
|
56
|
+
expect(expectedValue).to eq(calculatedValue)
|
37
57
|
end
|
58
|
+
end
|
59
|
+
|
38
60
|
describe 'test attribute "ERROR"' do
|
39
61
|
it 'should work' do
|
40
|
-
|
41
|
-
|
62
|
+
expect { Freeclimb::LogLevel::ERROR = "error" }.not_to raise_error
|
63
|
+
end
|
64
|
+
it 'should serialize to enum' do
|
65
|
+
expectedValue = Freeclimb::LogLevel::ERROR
|
66
|
+
calculatedValue = Freeclimb::LogLevel::build_from_hash("error")
|
67
|
+
expect(expectedValue).to eq(calculatedValue)
|
42
68
|
end
|
69
|
+
it 'should deserialize to string' do
|
70
|
+
expectedValue = "error"
|
71
|
+
calculatedValue = Freeclimb::LogLevel::ERROR
|
72
|
+
expect(expectedValue).to eq(calculatedValue)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
43
76
|
end
|