freeclimb 4.6.0 → 4.6.1
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 +8 -0
- data/Gemfile.lock +1 -1
- data/README.md +6 -5
- data/docs/DefaultApi.md +7 -6
- data/docs/TranscribeUtterance.md +1 -1
- data/docs/TranscribeUtteranceAllOf.md +28 -0
- data/docs/TranscribeUtteranceAllOfRecord.md +22 -0
- data/lib/freeclimb/api/default_api.rb +11 -7
- data/lib/freeclimb/models/account_request.rb +0 -2
- data/lib/freeclimb/models/account_result.rb +0 -6
- data/lib/freeclimb/models/add_to_conference.rb +0 -16
- data/lib/freeclimb/models/add_to_conference_all_of.rb +0 -16
- data/lib/freeclimb/models/application_result.rb +0 -6
- data/lib/freeclimb/models/buy_incoming_number_request.rb +0 -4
- data/lib/freeclimb/models/call_result.rb +0 -6
- data/lib/freeclimb/models/conference_participant_result.rb +0 -6
- data/lib/freeclimb/models/conference_result.rb +0 -6
- data/lib/freeclimb/models/create_conference.rb +0 -8
- data/lib/freeclimb/models/create_conference_all_of.rb +0 -8
- data/lib/freeclimb/models/create_conference_request.rb +0 -6
- data/lib/freeclimb/models/create_web_rtc_token.rb +0 -4
- data/lib/freeclimb/models/dequeue.rb +1 -0
- data/lib/freeclimb/models/enqueue.rb +0 -6
- data/lib/freeclimb/models/enqueue_all_of.rb +0 -6
- data/lib/freeclimb/models/get_digits.rb +0 -16
- data/lib/freeclimb/models/get_digits_all_of.rb +0 -16
- data/lib/freeclimb/models/get_speech.rb +0 -22
- data/lib/freeclimb/models/get_speech_all_of.rb +0 -22
- data/lib/freeclimb/models/incoming_number_request.rb +0 -2
- data/lib/freeclimb/models/incoming_number_result.rb +0 -10
- data/lib/freeclimb/models/incoming_number_result_all_of.rb +0 -2
- data/lib/freeclimb/models/make_call_request.rb +0 -18
- data/lib/freeclimb/models/message_request.rb +0 -16
- data/lib/freeclimb/models/message_request_all_of.rb +0 -8
- data/lib/freeclimb/models/message_result.rb +0 -8
- data/lib/freeclimb/models/message_result_all_of.rb +0 -2
- data/lib/freeclimb/models/mutable_resource_model.rb +0 -6
- data/lib/freeclimb/models/out_dial.rb +0 -18
- data/lib/freeclimb/models/out_dial_all_of.rb +0 -18
- data/lib/freeclimb/models/park.rb +0 -4
- data/lib/freeclimb/models/park_all_of.rb +0 -4
- data/lib/freeclimb/models/play.rb +0 -4
- data/lib/freeclimb/models/play_all_of.rb +0 -4
- data/lib/freeclimb/models/queue_request.rb +0 -2
- data/lib/freeclimb/models/queue_result.rb +0 -6
- data/lib/freeclimb/models/record_utterance.rb +0 -12
- data/lib/freeclimb/models/record_utterance_all_of.rb +0 -12
- data/lib/freeclimb/models/recording_result.rb +0 -6
- data/lib/freeclimb/models/remove_from_conference.rb +1 -0
- data/lib/freeclimb/models/say.rb +0 -6
- data/lib/freeclimb/models/say_all_of.rb +0 -6
- data/lib/freeclimb/models/send_digits.rb +0 -4
- data/lib/freeclimb/models/send_digits_all_of.rb +0 -4
- data/lib/freeclimb/models/sms.rb +0 -6
- data/lib/freeclimb/models/sms_all_of.rb +0 -6
- data/lib/freeclimb/models/sms_ten_dlc_brand.rb +0 -60
- data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +0 -50
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +0 -44
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +0 -20
- data/lib/freeclimb/models/sms_toll_free_campaign.rb +0 -12
- data/lib/freeclimb/models/start_record_call.rb +1 -0
- data/lib/freeclimb/models/terminate_conference.rb +1 -0
- data/lib/freeclimb/models/transcribe_utterance.rb +11 -16
- data/lib/freeclimb/models/{terminate_conference_all_of.rb → transcribe_utterance_all_of.rb} +67 -14
- data/lib/freeclimb/models/{transcribe_utterance_record.rb → transcribe_utterance_all_of_record.rb} +3 -7
- data/lib/freeclimb/models/unpark.rb +1 -0
- data/lib/freeclimb/models/update_conference_participant_request.rb +0 -2
- data/lib/freeclimb/models/update_conference_request.rb +0 -2
- data/lib/freeclimb/version.rb +1 -1
- data/lib/freeclimb.rb +3 -2
- data/openapi.json +142 -318
- data/spec/api/default_api_spec.rb +120 -61
- data/spec/models/account_request_spec.rb +8 -6
- data/spec/models/account_result_spec.rb +28 -9
- data/spec/models/add_to_conference_spec.rb +21 -7
- data/spec/models/application_list_spec.rb +46 -22
- data/spec/models/application_request_spec.rb +13 -6
- data/spec/models/application_result_spec.rb +24 -9
- data/spec/models/available_number_list_spec.rb +46 -22
- data/spec/models/available_number_spec.rb +23 -10
- data/spec/models/buy_incoming_number_request_spec.rb +11 -7
- data/spec/models/call_list_spec.rb +46 -22
- data/spec/models/call_result_spec.rb +49 -15
- data/spec/models/capabilities_spec.rb +26 -11
- data/spec/models/conference_list_spec.rb +46 -22
- data/spec/models/conference_participant_list_spec.rb +46 -22
- data/spec/models/conference_participant_result_spec.rb +24 -9
- data/spec/models/conference_result_spec.rb +32 -9
- data/spec/models/create_conference_request_spec.rb +15 -6
- data/spec/models/create_conference_spec.rb +19 -7
- data/spec/models/create_web_rtc_token_spec.rb +18 -12
- data/spec/models/enqueue_spec.rb +16 -9
- data/spec/models/filter_logs_request_spec.rb +9 -7
- data/spec/models/get_digits_spec.rb +43 -19
- data/spec/models/get_speech_spec.rb +60 -24
- data/spec/models/hangup_spec.rb +7 -6
- data/spec/models/incoming_number_list_spec.rb +46 -22
- data/spec/models/incoming_number_request_spec.rb +9 -6
- data/spec/models/incoming_number_result_spec.rb +47 -17
- data/spec/models/log_list_spec.rb +46 -22
- data/spec/models/log_result_spec.rb +21 -9
- data/spec/models/make_call_request_spec.rb +26 -11
- data/spec/models/message_request_spec.rb +26 -12
- data/spec/models/message_result_spec.rb +34 -11
- data/spec/models/messages_list_spec.rb +46 -22
- data/spec/models/mutable_resource_model_spec.rb +15 -9
- data/spec/models/out_dial_spec.rb +33 -13
- data/spec/models/pagination_model_spec.rb +40 -21
- data/spec/models/park_spec.rb +13 -8
- data/spec/models/pause_spec.rb +14 -10
- data/spec/models/percl_command_spec.rb +6 -6
- data/spec/models/percl_script_spec.rb +11 -6
- data/spec/models/play_early_media_spec.rb +9 -7
- data/spec/models/play_spec.rb +17 -10
- data/spec/models/queue_list_spec.rb +46 -22
- data/spec/models/queue_member_list_spec.rb +46 -22
- data/spec/models/queue_member_spec.rb +21 -12
- data/spec/models/queue_request_spec.rb +13 -9
- data/spec/models/queue_result_spec.rb +37 -18
- data/spec/models/record_utterance_spec.rb +28 -13
- data/spec/models/recording_list_spec.rb +46 -22
- data/spec/models/recording_result_spec.rb +25 -12
- data/spec/models/redirect_spec.rb +9 -7
- data/spec/models/reject_spec.rb +7 -6
- data/spec/models/remove_from_conference_spec.rb +0 -67
- data/spec/models/say_spec.rb +18 -10
- data/spec/models/send_digits_spec.rb +17 -10
- data/spec/models/set_listen_spec.rb +8 -6
- data/spec/models/set_talk_spec.rb +8 -6
- data/spec/models/sms_spec.rb +16 -9
- data/spec/models/sms_ten_dlc_brand_spec.rb +38 -4
- data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +46 -22
- data/spec/models/sms_ten_dlc_campaign_spec.rb +63 -4
- data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +46 -22
- data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +25 -7
- data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +56 -8
- data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +46 -22
- data/spec/models/sms_toll_free_campaign_spec.rb +29 -15
- data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +46 -22
- data/spec/models/terminate_conference_spec.rb +0 -67
- data/spec/models/tfn_spec.rb +9 -7
- data/spec/models/{transcribe_utterance_record_spec.rb → transcribe_utterance_all_of_record_spec.rb} +78 -67
- data/spec/models/transcribe_utterance_spec.rb +37 -96
- data/spec/models/update_call_request_spec.rb +12 -7
- data/spec/models/update_conference_participant_request_spec.rb +10 -6
- data/spec/models/update_conference_request_spec.rb +15 -6
- metadata +88 -87
- data/lib/freeclimb/models/remove_from_conference_all_of.rb +0 -228
data/spec/models/enqueue_spec.rb
CHANGED
@@ -30,6 +30,7 @@ describe Freeclimb::Enqueue do
|
|
30
30
|
it 'should work' do
|
31
31
|
instance.action_url = "TEST_STRING"
|
32
32
|
expect(instance.action_url).to eq("TEST_STRING")
|
33
|
+
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
@@ -37,6 +38,7 @@ describe Freeclimb::Enqueue do
|
|
37
38
|
it 'should work' do
|
38
39
|
instance.notification_url = "TEST_STRING"
|
39
40
|
expect(instance.notification_url).to eq("TEST_STRING")
|
41
|
+
|
40
42
|
end
|
41
43
|
end
|
42
44
|
|
@@ -44,6 +46,7 @@ describe Freeclimb::Enqueue do
|
|
44
46
|
it 'should work' do
|
45
47
|
instance.queue_id = "TEST_STRING"
|
46
48
|
expect(instance.queue_id).to eq("TEST_STRING")
|
49
|
+
|
47
50
|
end
|
48
51
|
end
|
49
52
|
|
@@ -51,6 +54,7 @@ describe Freeclimb::Enqueue do
|
|
51
54
|
it 'should work' do
|
52
55
|
instance.wait_url = "TEST_STRING"
|
53
56
|
expect(instance.wait_url).to eq("TEST_STRING")
|
57
|
+
|
54
58
|
end
|
55
59
|
end
|
56
60
|
|
@@ -82,7 +86,7 @@ describe Freeclimb::Enqueue do
|
|
82
86
|
)}.to raise_error(ArgumentError)
|
83
87
|
end
|
84
88
|
end
|
85
|
-
|
89
|
+
|
86
90
|
describe 'test method "valid"' do
|
87
91
|
it 'checks if properties are valid' do
|
88
92
|
instance = Freeclimb::Enqueue.new(
|
@@ -93,18 +97,20 @@ describe Freeclimb::Enqueue do
|
|
93
97
|
)
|
94
98
|
expect(instance.valid?).to eq(true)
|
95
99
|
end
|
100
|
+
|
96
101
|
it 'checks if properties are invalid' do
|
97
102
|
instance = Freeclimb::Enqueue.new(
|
98
|
-
|
99
|
-
|
100
|
-
|
103
|
+
|
104
|
+
action_url: nil,
|
105
|
+
|
106
|
+
queue_id: nil,
|
107
|
+
|
108
|
+
wait_url: nil,
|
109
|
+
|
101
110
|
)
|
102
111
|
expect(instance.valid?).to eq(false)
|
103
112
|
end
|
104
|
-
|
105
|
-
instance = Freeclimb::Enqueue.new()
|
106
|
-
expect(instance.valid?).to eq(false)
|
107
|
-
end
|
113
|
+
|
108
114
|
end
|
109
115
|
|
110
116
|
describe 'test method "eql?"' do
|
@@ -124,6 +130,7 @@ describe Freeclimb::Enqueue do
|
|
124
130
|
)
|
125
131
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
126
132
|
end
|
133
|
+
|
127
134
|
it 'checks if objects are not equal' do
|
128
135
|
instance_1 = Freeclimb::Enqueue.new(
|
129
136
|
action_url: "TS",
|
@@ -140,7 +147,7 @@ describe Freeclimb::Enqueue do
|
|
140
147
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
141
148
|
end
|
142
149
|
end
|
143
|
-
|
150
|
+
|
144
151
|
describe 'test method "hash"' do
|
145
152
|
it 'calculates hash code' do
|
146
153
|
instance = Freeclimb::Enqueue.new(
|
@@ -30,6 +30,7 @@ describe Freeclimb::FilterLogsRequest do
|
|
30
30
|
it 'should work' do
|
31
31
|
instance.pql = "TEST_STRING"
|
32
32
|
expect(instance.pql).to eq("TEST_STRING")
|
33
|
+
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
@@ -52,7 +53,7 @@ describe Freeclimb::FilterLogsRequest do
|
|
52
53
|
)}.to raise_error(ArgumentError)
|
53
54
|
end
|
54
55
|
end
|
55
|
-
|
56
|
+
|
56
57
|
describe 'test method "valid"' do
|
57
58
|
it 'checks if properties are valid' do
|
58
59
|
instance = Freeclimb::FilterLogsRequest.new(
|
@@ -60,16 +61,16 @@ describe Freeclimb::FilterLogsRequest do
|
|
60
61
|
)
|
61
62
|
expect(instance.valid?).to eq(true)
|
62
63
|
end
|
64
|
+
|
63
65
|
it 'checks if properties are invalid' do
|
64
66
|
instance = Freeclimb::FilterLogsRequest.new(
|
65
|
-
|
67
|
+
|
68
|
+
pql: nil,
|
69
|
+
|
66
70
|
)
|
67
71
|
expect(instance.valid?).to eq(false)
|
68
72
|
end
|
69
|
-
|
70
|
-
instance = Freeclimb::FilterLogsRequest.new()
|
71
|
-
expect(instance.valid?).to eq(false)
|
72
|
-
end
|
73
|
+
|
73
74
|
end
|
74
75
|
|
75
76
|
describe 'test method "eql?"' do
|
@@ -83,6 +84,7 @@ describe Freeclimb::FilterLogsRequest do
|
|
83
84
|
)
|
84
85
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
85
86
|
end
|
87
|
+
|
86
88
|
it 'checks if objects are not equal' do
|
87
89
|
instance_1 = Freeclimb::FilterLogsRequest.new(
|
88
90
|
pql: "TS",
|
@@ -93,7 +95,7 @@ describe Freeclimb::FilterLogsRequest do
|
|
93
95
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
94
96
|
end
|
95
97
|
end
|
96
|
-
|
98
|
+
|
97
99
|
describe 'test method "hash"' do
|
98
100
|
it 'calculates hash code' do
|
99
101
|
instance = Freeclimb::FilterLogsRequest.new(
|
@@ -30,13 +30,17 @@ describe Freeclimb::GetDigits do
|
|
30
30
|
it 'should work' do
|
31
31
|
instance.action_url = "TEST_STRING"
|
32
32
|
expect(instance.action_url).to eq("TEST_STRING")
|
33
|
+
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
36
37
|
describe 'test attribute "digit_timeout_ms"' do
|
37
38
|
it 'should work' do
|
39
|
+
|
40
|
+
|
38
41
|
instance.digit_timeout_ms = 1
|
39
|
-
expect(instance.digit_timeout_ms).to eq(1)
|
42
|
+
expect(instance.digit_timeout_ms).to eq(1)
|
43
|
+
|
40
44
|
end
|
41
45
|
end
|
42
46
|
|
@@ -44,6 +48,7 @@ describe Freeclimb::GetDigits do
|
|
44
48
|
it 'should work' do
|
45
49
|
instance.finish_on_key = "TEST_STRING"
|
46
50
|
expect(instance.finish_on_key).to eq("TEST_STRING")
|
51
|
+
|
47
52
|
end
|
48
53
|
end
|
49
54
|
|
@@ -51,32 +56,43 @@ describe Freeclimb::GetDigits do
|
|
51
56
|
it 'should work' do
|
52
57
|
instance.flush_buffer = false
|
53
58
|
expect(instance.flush_buffer).to eq(false)
|
59
|
+
|
54
60
|
end
|
55
61
|
end
|
56
62
|
|
57
63
|
describe 'test attribute "initial_timeout_ms"' do
|
58
64
|
it 'should work' do
|
65
|
+
|
66
|
+
|
59
67
|
instance.initial_timeout_ms = 1
|
60
|
-
expect(instance.initial_timeout_ms).to eq(1)
|
68
|
+
expect(instance.initial_timeout_ms).to eq(1)
|
69
|
+
|
61
70
|
end
|
62
71
|
end
|
63
72
|
|
64
73
|
describe 'test attribute "max_digits"' do
|
65
74
|
it 'should work' do
|
75
|
+
|
76
|
+
|
66
77
|
instance.max_digits = 1
|
67
|
-
expect(instance.max_digits).to eq(1)
|
78
|
+
expect(instance.max_digits).to eq(1)
|
79
|
+
|
68
80
|
end
|
69
81
|
end
|
70
82
|
|
71
83
|
describe 'test attribute "min_digits"' do
|
72
84
|
it 'should work' do
|
85
|
+
|
86
|
+
|
73
87
|
instance.min_digits = 1
|
74
|
-
expect(instance.min_digits).to eq(1)
|
88
|
+
expect(instance.min_digits).to eq(1)
|
89
|
+
|
75
90
|
end
|
76
91
|
end
|
77
92
|
|
78
93
|
describe 'test attribute "prompts"' do
|
79
94
|
it 'should work' do
|
95
|
+
|
80
96
|
instance.prompts = ["ELEMENT_1", "ELEMENT_2"]
|
81
97
|
expect(instance.prompts).to eq(["ELEMENT_1", "ELEMENT_2"])
|
82
98
|
end
|
@@ -86,6 +102,7 @@ describe Freeclimb::GetDigits do
|
|
86
102
|
it 'should work' do
|
87
103
|
instance.privacy_mode = false
|
88
104
|
expect(instance.privacy_mode).to eq(false)
|
105
|
+
|
89
106
|
end
|
90
107
|
end
|
91
108
|
|
@@ -132,7 +149,7 @@ describe Freeclimb::GetDigits do
|
|
132
149
|
)}.to raise_error(ArgumentError)
|
133
150
|
end
|
134
151
|
end
|
135
|
-
|
152
|
+
|
136
153
|
describe 'test method "valid"' do
|
137
154
|
it 'checks if properties are valid' do
|
138
155
|
instance = Freeclimb::GetDigits.new(
|
@@ -148,16 +165,18 @@ describe Freeclimb::GetDigits do
|
|
148
165
|
)
|
149
166
|
expect(instance.valid?).to eq(true)
|
150
167
|
end
|
168
|
+
|
151
169
|
it 'checks if properties are invalid' do
|
152
170
|
instance = Freeclimb::GetDigits.new(
|
153
|
-
|
171
|
+
|
172
|
+
action_url: nil,
|
173
|
+
flush_buffer: nil,
|
174
|
+
privacy_mode: nil,
|
175
|
+
|
154
176
|
)
|
155
177
|
expect(instance.valid?).to eq(false)
|
156
178
|
end
|
157
|
-
|
158
|
-
instance = Freeclimb::GetDigits.new()
|
159
|
-
expect(instance.valid?).to eq(false)
|
160
|
-
end
|
179
|
+
|
161
180
|
end
|
162
181
|
|
163
182
|
describe 'test method "eql?"' do
|
@@ -171,6 +190,7 @@ describe Freeclimb::GetDigits do
|
|
171
190
|
initial_timeout_ms: 1,
|
172
191
|
max_digits: 1,
|
173
192
|
min_digits: 1,
|
193
|
+
prompts: Freeclimb::PerclCommand.new(),
|
174
194
|
prompts: [],
|
175
195
|
privacy_mode: true,
|
176
196
|
)
|
@@ -182,38 +202,42 @@ describe Freeclimb::GetDigits do
|
|
182
202
|
initial_timeout_ms: 1,
|
183
203
|
max_digits: 1,
|
184
204
|
min_digits: 1,
|
205
|
+
prompts: Freeclimb::PerclCommand.new(),
|
185
206
|
prompts: [],
|
186
207
|
privacy_mode: true,
|
187
208
|
)
|
188
209
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
189
210
|
end
|
211
|
+
|
190
212
|
it 'checks if objects are not equal' do
|
191
213
|
instance_1 = Freeclimb::GetDigits.new(
|
192
214
|
action_url: "TS",
|
193
|
-
digit_timeout_ms:
|
215
|
+
digit_timeout_ms: 2,
|
194
216
|
finish_on_key: "TS",
|
195
217
|
flush_buffer: true,
|
196
|
-
initial_timeout_ms:
|
197
|
-
max_digits:
|
198
|
-
min_digits:
|
218
|
+
initial_timeout_ms: 2,
|
219
|
+
max_digits: 2,
|
220
|
+
min_digits: 2,
|
221
|
+
prompts: Freeclimb::PerclCommand.new(),
|
199
222
|
prompts: [],
|
200
223
|
privacy_mode: true,
|
201
224
|
)
|
202
225
|
instance_2 = Freeclimb::GetDigits.new(
|
203
226
|
action_url: "ST",
|
204
|
-
digit_timeout_ms:
|
227
|
+
digit_timeout_ms: 1,
|
205
228
|
finish_on_key: "ST",
|
206
229
|
flush_buffer: false,
|
207
|
-
initial_timeout_ms:
|
208
|
-
max_digits:
|
209
|
-
min_digits:
|
230
|
+
initial_timeout_ms: 1,
|
231
|
+
max_digits: 1,
|
232
|
+
min_digits: 1,
|
233
|
+
prompts: Freeclimb::PerclCommand.new(),
|
210
234
|
prompts: nil,
|
211
235
|
privacy_mode: false,
|
212
236
|
)
|
213
237
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
214
238
|
end
|
215
239
|
end
|
216
|
-
|
240
|
+
|
217
241
|
describe 'test method "hash"' do
|
218
242
|
it 'calculates hash code' do
|
219
243
|
instance = Freeclimb::GetDigits.new(
|
@@ -30,6 +30,7 @@ describe Freeclimb::GetSpeech do
|
|
30
30
|
it 'should work' do
|
31
31
|
instance.action_url = "TEST_STRING"
|
32
32
|
expect(instance.action_url).to eq("TEST_STRING")
|
33
|
+
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
@@ -49,6 +50,7 @@ describe Freeclimb::GetSpeech do
|
|
49
50
|
it 'should work' do
|
50
51
|
instance.grammar_file = "TEST_STRING"
|
51
52
|
expect(instance.grammar_file).to eq("TEST_STRING")
|
53
|
+
|
52
54
|
end
|
53
55
|
end
|
54
56
|
|
@@ -56,6 +58,7 @@ describe Freeclimb::GetSpeech do
|
|
56
58
|
it 'should work' do
|
57
59
|
instance.grammar_rule = "TEST_STRING"
|
58
60
|
expect(instance.grammar_rule).to eq("TEST_STRING")
|
61
|
+
|
59
62
|
end
|
60
63
|
end
|
61
64
|
|
@@ -63,11 +66,13 @@ describe Freeclimb::GetSpeech do
|
|
63
66
|
it 'should work' do
|
64
67
|
instance.play_beep = false
|
65
68
|
expect(instance.play_beep).to eq(false)
|
69
|
+
|
66
70
|
end
|
67
71
|
end
|
68
72
|
|
69
73
|
describe 'test attribute "prompts"' do
|
70
74
|
it 'should work' do
|
75
|
+
|
71
76
|
instance.prompts = ["ELEMENT_1", "ELEMENT_2"]
|
72
77
|
expect(instance.prompts).to eq(["ELEMENT_1", "ELEMENT_2"])
|
73
78
|
end
|
@@ -75,43 +80,61 @@ describe Freeclimb::GetSpeech do
|
|
75
80
|
|
76
81
|
describe 'test attribute "no_input_timeout_ms"' do
|
77
82
|
it 'should work' do
|
83
|
+
|
84
|
+
|
78
85
|
instance.no_input_timeout_ms = 1
|
79
|
-
expect(instance.no_input_timeout_ms).to eq(1)
|
86
|
+
expect(instance.no_input_timeout_ms).to eq(1)
|
87
|
+
|
80
88
|
end
|
81
89
|
end
|
82
90
|
|
83
91
|
describe 'test attribute "recognition_timeout_ms"' do
|
84
92
|
it 'should work' do
|
93
|
+
|
94
|
+
|
85
95
|
instance.recognition_timeout_ms = 1
|
86
|
-
expect(instance.recognition_timeout_ms).to eq(1)
|
96
|
+
expect(instance.recognition_timeout_ms).to eq(1)
|
97
|
+
|
87
98
|
end
|
88
99
|
end
|
89
100
|
|
90
101
|
describe 'test attribute "confidence_threshold"' do
|
91
102
|
it 'should work' do
|
92
|
-
|
93
|
-
|
103
|
+
|
104
|
+
|
105
|
+
instance.confidence_threshold = 1.0
|
106
|
+
expect(instance.confidence_threshold).to eq(1.0)
|
107
|
+
|
94
108
|
end
|
95
109
|
end
|
96
110
|
|
97
111
|
describe 'test attribute "sensitivity_level"' do
|
98
112
|
it 'should work' do
|
99
|
-
|
100
|
-
|
113
|
+
|
114
|
+
|
115
|
+
instance.sensitivity_level = 1.0
|
116
|
+
expect(instance.sensitivity_level).to eq(1.0)
|
117
|
+
|
101
118
|
end
|
102
119
|
end
|
103
120
|
|
104
121
|
describe 'test attribute "speech_complete_timeout_ms"' do
|
105
122
|
it 'should work' do
|
123
|
+
|
124
|
+
|
106
125
|
instance.speech_complete_timeout_ms = 1
|
107
|
-
expect(instance.speech_complete_timeout_ms).to eq(1)
|
126
|
+
expect(instance.speech_complete_timeout_ms).to eq(1)
|
127
|
+
|
108
128
|
end
|
109
129
|
end
|
110
130
|
|
111
131
|
describe 'test attribute "speech_incomplete_timeout_ms"' do
|
112
132
|
it 'should work' do
|
133
|
+
|
134
|
+
|
113
135
|
instance.speech_incomplete_timeout_ms = 1
|
114
|
-
expect(instance.speech_incomplete_timeout_ms).to eq(1)
|
136
|
+
expect(instance.speech_incomplete_timeout_ms).to eq(1)
|
137
|
+
|
115
138
|
end
|
116
139
|
end
|
117
140
|
|
@@ -119,6 +142,7 @@ describe Freeclimb::GetSpeech do
|
|
119
142
|
it 'should work' do
|
120
143
|
instance.privacy_mode = false
|
121
144
|
expect(instance.privacy_mode).to eq(false)
|
145
|
+
|
122
146
|
end
|
123
147
|
end
|
124
148
|
|
@@ -171,7 +195,7 @@ describe Freeclimb::GetSpeech do
|
|
171
195
|
)}.to raise_error(ArgumentError)
|
172
196
|
end
|
173
197
|
end
|
174
|
-
|
198
|
+
|
175
199
|
describe 'test method "valid"' do
|
176
200
|
it 'checks if properties are valid' do
|
177
201
|
instance = Freeclimb::GetSpeech.new(
|
@@ -191,17 +215,20 @@ describe Freeclimb::GetSpeech do
|
|
191
215
|
)
|
192
216
|
expect(instance.valid?).to eq(true)
|
193
217
|
end
|
218
|
+
|
194
219
|
it 'checks if properties are invalid' do
|
195
220
|
instance = Freeclimb::GetSpeech.new(
|
196
|
-
|
197
|
-
|
221
|
+
|
222
|
+
action_url: nil,
|
223
|
+
|
224
|
+
grammar_file: nil,
|
225
|
+
play_beep: nil,
|
226
|
+
privacy_mode: nil,
|
227
|
+
|
198
228
|
)
|
199
229
|
expect(instance.valid?).to eq(false)
|
200
230
|
end
|
201
|
-
|
202
|
-
instance = Freeclimb::GetSpeech.new()
|
203
|
-
expect(instance.valid?).to eq(false)
|
204
|
-
end
|
231
|
+
|
205
232
|
end
|
206
233
|
|
207
234
|
describe 'test method "eql?"' do
|
@@ -209,10 +236,12 @@ describe Freeclimb::GetSpeech do
|
|
209
236
|
obj = Object.new()
|
210
237
|
instance_1 = Freeclimb::GetSpeech.new(
|
211
238
|
action_url: "TS",
|
239
|
+
grammar_type: Freeclimb::GrammarType.new(),
|
212
240
|
grammar_type: "URL",
|
213
241
|
grammar_file: "TS",
|
214
242
|
grammar_rule: "TS",
|
215
243
|
play_beep: true,
|
244
|
+
prompts: Freeclimb::PerclCommand.new(),
|
216
245
|
prompts: [],
|
217
246
|
no_input_timeout_ms: 1,
|
218
247
|
recognition_timeout_ms: 1,
|
@@ -222,10 +251,12 @@ describe Freeclimb::GetSpeech do
|
|
222
251
|
)
|
223
252
|
instance_2 = Freeclimb::GetSpeech.new(
|
224
253
|
action_url: "TS",
|
254
|
+
grammar_type: Freeclimb::GrammarType.new(),
|
225
255
|
grammar_type: "URL",
|
226
256
|
grammar_file: "TS",
|
227
257
|
grammar_rule: "TS",
|
228
258
|
play_beep: true,
|
259
|
+
prompts: Freeclimb::PerclCommand.new(),
|
229
260
|
prompts: [],
|
230
261
|
no_input_timeout_ms: 1,
|
231
262
|
recognition_timeout_ms: 1,
|
@@ -235,37 +266,42 @@ describe Freeclimb::GetSpeech do
|
|
235
266
|
)
|
236
267
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
237
268
|
end
|
269
|
+
|
238
270
|
it 'checks if objects are not equal' do
|
239
271
|
instance_1 = Freeclimb::GetSpeech.new(
|
240
272
|
action_url: "TS",
|
273
|
+
grammar_type: Freeclimb::GrammarType.new(),
|
241
274
|
grammar_type: "URL",
|
242
275
|
grammar_file: "TS",
|
243
276
|
grammar_rule: "TS",
|
244
277
|
play_beep: true,
|
278
|
+
prompts: Freeclimb::PerclCommand.new(),
|
245
279
|
prompts: [],
|
246
|
-
no_input_timeout_ms:
|
247
|
-
recognition_timeout_ms:
|
248
|
-
speech_complete_timeout_ms:
|
249
|
-
speech_incomplete_timeout_ms:
|
280
|
+
no_input_timeout_ms: 2,
|
281
|
+
recognition_timeout_ms: 2,
|
282
|
+
speech_complete_timeout_ms: 2,
|
283
|
+
speech_incomplete_timeout_ms: 2,
|
250
284
|
privacy_mode: true,
|
251
285
|
)
|
252
286
|
instance_2 = Freeclimb::GetSpeech.new(
|
253
287
|
action_url: "ST",
|
288
|
+
grammar_type: Freeclimb::GrammarType.new(),
|
254
289
|
grammar_type: "BUILT_IN",
|
255
290
|
grammar_file: "ST",
|
256
291
|
grammar_rule: "ST",
|
257
292
|
play_beep: false,
|
293
|
+
prompts: Freeclimb::PerclCommand.new(),
|
258
294
|
prompts: nil,
|
259
|
-
no_input_timeout_ms:
|
260
|
-
recognition_timeout_ms:
|
261
|
-
speech_complete_timeout_ms:
|
262
|
-
speech_incomplete_timeout_ms:
|
295
|
+
no_input_timeout_ms: 1,
|
296
|
+
recognition_timeout_ms: 1,
|
297
|
+
speech_complete_timeout_ms: 1,
|
298
|
+
speech_incomplete_timeout_ms: 1,
|
263
299
|
privacy_mode: false,
|
264
300
|
)
|
265
301
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
266
302
|
end
|
267
303
|
end
|
268
|
-
|
304
|
+
|
269
305
|
describe 'test method "hash"' do
|
270
306
|
it 'calculates hash code' do
|
271
307
|
instance = Freeclimb::GetSpeech.new(
|
data/spec/models/hangup_spec.rb
CHANGED
@@ -30,6 +30,7 @@ describe Freeclimb::Hangup do
|
|
30
30
|
it 'should work' do
|
31
31
|
instance.reason = "TEST_STRING"
|
32
32
|
expect(instance.reason).to eq("TEST_STRING")
|
33
|
+
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
@@ -52,7 +53,7 @@ describe Freeclimb::Hangup do
|
|
52
53
|
)}.to raise_error(ArgumentError)
|
53
54
|
end
|
54
55
|
end
|
55
|
-
|
56
|
+
|
56
57
|
describe 'test method "valid"' do
|
57
58
|
it 'checks if properties are valid' do
|
58
59
|
instance = Freeclimb::Hangup.new(
|
@@ -60,15 +61,14 @@ describe Freeclimb::Hangup do
|
|
60
61
|
)
|
61
62
|
expect(instance.valid?).to eq(true)
|
62
63
|
end
|
64
|
+
|
63
65
|
it 'checks if properties are invalid' do
|
64
66
|
instance = Freeclimb::Hangup.new(
|
67
|
+
|
65
68
|
)
|
66
69
|
expect(instance.valid?).to eq(false)
|
67
70
|
end
|
68
|
-
|
69
|
-
instance = Freeclimb::Hangup.new()
|
70
|
-
expect(instance.valid?).to eq(false)
|
71
|
-
end
|
71
|
+
|
72
72
|
end
|
73
73
|
|
74
74
|
describe 'test method "eql?"' do
|
@@ -82,6 +82,7 @@ describe Freeclimb::Hangup do
|
|
82
82
|
)
|
83
83
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
84
84
|
end
|
85
|
+
|
85
86
|
it 'checks if objects are not equal' do
|
86
87
|
instance_1 = Freeclimb::Hangup.new(
|
87
88
|
reason: "TS",
|
@@ -92,7 +93,7 @@ describe Freeclimb::Hangup do
|
|
92
93
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
93
94
|
end
|
94
95
|
end
|
95
|
-
|
96
|
+
|
96
97
|
describe 'test method "hash"' do
|
97
98
|
it 'calculates hash code' do
|
98
99
|
instance = Freeclimb::Hangup.new(
|