freeclimb 4.7.0 → 4.8.0
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 +21 -21
- data/README.md +7 -4
- data/docs/CompletionRequest.md +18 -0
- data/docs/CompletionResult.md +20 -0
- data/docs/DefaultApi.md +76 -0
- data/docs/SMSTenDLCCampaign.md +1 -1
- data/lib/freeclimb/api/default_api.rb +69 -0
- data/lib/freeclimb/models/completion_request.rb +246 -0
- data/lib/freeclimb/models/completion_result.rb +274 -0
- data/lib/freeclimb/version.rb +1 -1
- data/lib/freeclimb.rb +2 -0
- data/openapi.json +76 -6
- data/package.json +3 -1
- data/spec/api/default_api_spec.rb +29 -0
- data/spec/models/account_request_spec.rb +2 -1
- data/spec/models/account_result_spec.rb +2 -1
- data/spec/models/add_to_conference_spec.rb +2 -7
- data/spec/models/application_list_spec.rb +2 -1
- data/spec/models/application_request_spec.rb +2 -1
- data/spec/models/application_result_spec.rb +2 -1
- data/spec/models/available_number_list_spec.rb +2 -1
- data/spec/models/available_number_spec.rb +2 -3
- data/spec/models/buy_incoming_number_request_spec.rb +2 -3
- data/spec/models/call_list_spec.rb +2 -1
- data/spec/models/call_result_spec.rb +2 -1
- data/spec/models/capabilities_spec.rb +2 -16
- data/spec/models/completion_request_spec.rb +165 -0
- data/spec/models/completion_result_spec.rb +203 -0
- data/spec/models/conference_list_spec.rb +2 -1
- data/spec/models/conference_participant_list_spec.rb +2 -1
- data/spec/models/conference_participant_result_spec.rb +2 -4
- data/spec/models/conference_result_spec.rb +2 -2
- data/spec/models/create_conference_request_spec.rb +2 -2
- data/spec/models/create_conference_spec.rb +2 -5
- data/spec/models/create_web_rtc_token_spec.rb +2 -5
- data/spec/models/enqueue_spec.rb +2 -7
- data/spec/models/filter_logs_request_spec.rb +2 -3
- data/spec/models/get_digits_spec.rb +2 -5
- data/spec/models/get_speech_spec.rb +2 -7
- data/spec/models/hangup_spec.rb +2 -1
- data/spec/models/incoming_number_list_spec.rb +2 -1
- data/spec/models/incoming_number_request_spec.rb +2 -1
- data/spec/models/incoming_number_result_spec.rb +2 -4
- data/spec/models/log_list_spec.rb +2 -1
- data/spec/models/log_result_spec.rb +2 -1
- data/spec/models/make_call_request_spec.rb +2 -6
- data/spec/models/message_request_spec.rb +2 -7
- data/spec/models/message_result_spec.rb +2 -1
- data/spec/models/messages_list_spec.rb +2 -1
- data/spec/models/mutable_resource_model_spec.rb +2 -1
- data/spec/models/out_dial_spec.rb +2 -10
- data/spec/models/pagination_model_spec.rb +2 -1
- data/spec/models/park_spec.rb +2 -5
- data/spec/models/pause_spec.rb +2 -3
- data/spec/models/percl_command_spec.rb +2 -1
- data/spec/models/percl_script_spec.rb +2 -1
- data/spec/models/play_early_media_spec.rb +2 -3
- data/spec/models/play_spec.rb +2 -4
- data/spec/models/queue_list_spec.rb +2 -1
- data/spec/models/queue_member_list_spec.rb +2 -1
- data/spec/models/queue_member_spec.rb +2 -1
- data/spec/models/queue_request_spec.rb +2 -1
- data/spec/models/queue_result_spec.rb +2 -1
- data/spec/models/record_utterance_spec.rb +2 -6
- data/spec/models/recording_list_spec.rb +2 -1
- data/spec/models/recording_result_spec.rb +2 -1
- data/spec/models/redirect_spec.rb +2 -3
- data/spec/models/reject_spec.rb +2 -1
- data/spec/models/say_spec.rb +2 -4
- data/spec/models/send_digits_spec.rb +2 -4
- data/spec/models/set_listen_spec.rb +2 -2
- data/spec/models/set_talk_spec.rb +2 -2
- data/spec/models/sms_spec.rb +2 -7
- data/spec/models/sms_ten_dlc_brand_spec.rb +132 -103
- data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +2 -1
- data/spec/models/sms_ten_dlc_campaign_spec.rb +21 -53
- data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +2 -1
- data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +2 -8
- data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +21 -43
- data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +2 -1
- data/spec/models/sms_toll_free_campaign_spec.rb +24 -29
- data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +2 -1
- data/spec/models/tfn_spec.rb +2 -3
- data/spec/models/transcribe_utterance_all_of_record_spec.rb +2 -6
- data/spec/models/transcribe_utterance_spec.rb +2 -6
- data/spec/models/update_call_request_spec.rb +2 -3
- data/spec/models/update_conference_participant_request_spec.rb +2 -3
- data/spec/models/update_conference_request_spec.rb +2 -1
- data/yarn.lock +27 -8
- metadata +89 -81
@@ -0,0 +1,165 @@
|
|
1
|
+
=begin
|
2
|
+
#FreeClimb API
|
3
|
+
|
4
|
+
#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: support@freeclimb.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Freeclimb::CompletionRequest
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Freeclimb::CompletionRequest do
|
21
|
+
let(:instance) { Freeclimb::CompletionRequest.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CompletionRequest' do
|
24
|
+
it 'should create an instance of CompletionRequest' do
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::CompletionRequest)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test attribute "query"' do
|
30
|
+
it 'should assign a value of maxLength' do
|
31
|
+
instance.query = "T" * 2000
|
32
|
+
expect(instance.query).to eq("T" * 2000)
|
33
|
+
end
|
34
|
+
it 'should not assign a value over maxLength' do
|
35
|
+
expect{instance.query = "T" * (2000 + 1)}.to raise_error(ArgumentError)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
describe 'test method "initialize"' do
|
40
|
+
it 'properly initializes with values' do
|
41
|
+
expect{instance = Freeclimb::CompletionRequest.new(
|
42
|
+
query: "TS",
|
43
|
+
)}.not_to raise_error()
|
44
|
+
end
|
45
|
+
it 'fails to initialize with input argument that is not a hash in Freeclimb::CompletionRequest' do
|
46
|
+
expect{instance = Freeclimb::CompletionRequest.new(
|
47
|
+
query: "TS",
|
48
|
+
invalid_attribute: true
|
49
|
+
)}.to raise_error(ArgumentError)
|
50
|
+
end
|
51
|
+
it 'fails to initialize with invalid attribute' do
|
52
|
+
expect{instance = Freeclimb::CompletionRequest.new(
|
53
|
+
query: "TS",
|
54
|
+
invalid_attribute: true
|
55
|
+
)}.to raise_error(ArgumentError)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test method "valid"' do
|
60
|
+
it 'checks if properties are valid' do
|
61
|
+
instance = Freeclimb::CompletionRequest.new(
|
62
|
+
query: "TS",
|
63
|
+
)
|
64
|
+
expect(instance.valid?).to eq(true)
|
65
|
+
end
|
66
|
+
|
67
|
+
|
68
|
+
skip 'checks if properties are invalid' do
|
69
|
+
instance = Freeclimb::CompletionRequest.new(
|
70
|
+
|
71
|
+
)
|
72
|
+
expect(instance.valid?).to eq(false)
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
76
|
+
|
77
|
+
describe 'test method "eql?"' do
|
78
|
+
it 'checks if objects are equal' do
|
79
|
+
obj = Object.new()
|
80
|
+
instance_1 = Freeclimb::CompletionRequest.new(
|
81
|
+
query: "TS",
|
82
|
+
)
|
83
|
+
instance_2 = Freeclimb::CompletionRequest.new(
|
84
|
+
query: "TS",
|
85
|
+
)
|
86
|
+
expect(instance_1.eql?(instance_2)).to eq(true)
|
87
|
+
end
|
88
|
+
|
89
|
+
it 'checks if objects are not equal' do
|
90
|
+
instance_1 = Freeclimb::CompletionRequest.new(
|
91
|
+
query: "TS",
|
92
|
+
)
|
93
|
+
instance_2 = Freeclimb::CompletionRequest.new(
|
94
|
+
query: "ST",
|
95
|
+
)
|
96
|
+
expect(instance_1.eql?(instance_2)).to eq(false)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
describe 'test method "hash"' do
|
101
|
+
it 'calculates hash code' do
|
102
|
+
instance = Freeclimb::CompletionRequest.new(
|
103
|
+
query: "TS",
|
104
|
+
)
|
105
|
+
expect(instance.hash).to be_a_kind_of(Integer)
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
describe 'test method "build_from_hash"' do
|
110
|
+
it 'builds equivalent model from hash code' do
|
111
|
+
instance_1 = Freeclimb::CompletionRequest.new(
|
112
|
+
query: "TS",
|
113
|
+
)
|
114
|
+
instance_2 = Freeclimb::CompletionRequest.new
|
115
|
+
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
describe 'test method "_deserialize"' do
|
120
|
+
instance = Freeclimb::CompletionRequest.new(
|
121
|
+
query: "TS",
|
122
|
+
)
|
123
|
+
it 'deserializes the data of query' do
|
124
|
+
expect(instance._deserialize("String", instance.query)).to be_a_kind_of(String)
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
describe 'test method "to_s"' do
|
129
|
+
it 'returns the string representation of the object' do
|
130
|
+
instance = Freeclimb::CompletionRequest.new(
|
131
|
+
query: "TS",
|
132
|
+
)
|
133
|
+
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
describe 'test method "to_hash"' do
|
138
|
+
it 'returns the object in the form of hash' do
|
139
|
+
instance = Freeclimb::CompletionRequest.new(
|
140
|
+
query: "TS",
|
141
|
+
)
|
142
|
+
expect(instance.to_hash).to be_a_kind_of(Hash)
|
143
|
+
end
|
144
|
+
it 'creates equal hash for two equal objects' do
|
145
|
+
obj = Object.new()
|
146
|
+
instance_1 = Freeclimb::CompletionRequest.new(
|
147
|
+
query: "TS",
|
148
|
+
)
|
149
|
+
instance_2 = Freeclimb::CompletionRequest.new(
|
150
|
+
query: "TS",
|
151
|
+
)
|
152
|
+
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
describe 'test method "_to_hash"' do
|
157
|
+
instance = Freeclimb::CompletionRequest.new(
|
158
|
+
query: "TS",
|
159
|
+
)
|
160
|
+
it 'returns query in the form of hash' do
|
161
|
+
expect(instance._to_hash(instance.query)).to eq(instance.query)
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
end
|
@@ -0,0 +1,203 @@
|
|
1
|
+
=begin
|
2
|
+
#FreeClimb API
|
3
|
+
|
4
|
+
#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: support@freeclimb.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Freeclimb::CompletionResult
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Freeclimb::CompletionResult do
|
21
|
+
let(:instance) { Freeclimb::CompletionResult.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CompletionResult' do
|
24
|
+
it 'should create an instance of CompletionResult' do
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::CompletionResult)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test attribute "response"' do
|
30
|
+
it 'should work' do
|
31
|
+
instance.response = "TEST_STRING"
|
32
|
+
expect(instance.response).to eq("TEST_STRING")
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
|
38
|
+
describe 'test attribute "status"' do
|
39
|
+
it 'assigns value success' do
|
40
|
+
instance.status = "success"
|
41
|
+
expect(instance.status).to eq("success")
|
42
|
+
end
|
43
|
+
it 'assigns value no_context' do
|
44
|
+
instance.status = "no_context"
|
45
|
+
expect(instance.status).to eq("no_context")
|
46
|
+
end
|
47
|
+
|
48
|
+
it 'throws error on invalid enum' do
|
49
|
+
instance = Freeclimb::CompletionResult.new
|
50
|
+
expect{instance.status = "INVALID_ENUM"}.to raise_error(ArgumentError)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'test method "initialize"' do
|
55
|
+
it 'properly initializes with values' do
|
56
|
+
expect{instance = Freeclimb::CompletionResult.new(
|
57
|
+
response: "TS",
|
58
|
+
status: "success",
|
59
|
+
)}.not_to raise_error()
|
60
|
+
end
|
61
|
+
it 'fails to initialize with input argument that is not a hash in Freeclimb::CompletionResult' do
|
62
|
+
expect{instance = Freeclimb::CompletionResult.new(
|
63
|
+
response: "TS",
|
64
|
+
status: "success",
|
65
|
+
invalid_attribute: true
|
66
|
+
)}.to raise_error(ArgumentError)
|
67
|
+
end
|
68
|
+
it 'fails to initialize with invalid attribute' do
|
69
|
+
expect{instance = Freeclimb::CompletionResult.new(
|
70
|
+
response: "TS",
|
71
|
+
status: "success",
|
72
|
+
invalid_attribute: true
|
73
|
+
)}.to raise_error(ArgumentError)
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
describe 'test method "valid"' do
|
78
|
+
it 'checks if properties are valid' do
|
79
|
+
instance = Freeclimb::CompletionResult.new(
|
80
|
+
response: "TS",
|
81
|
+
status: "success",
|
82
|
+
)
|
83
|
+
expect(instance.valid?).to eq(true)
|
84
|
+
end
|
85
|
+
|
86
|
+
|
87
|
+
skip 'checks if properties are invalid' do
|
88
|
+
instance = Freeclimb::CompletionResult.new(
|
89
|
+
|
90
|
+
)
|
91
|
+
expect(instance.valid?).to eq(false)
|
92
|
+
end
|
93
|
+
|
94
|
+
end
|
95
|
+
|
96
|
+
describe 'test method "eql?"' do
|
97
|
+
it 'checks if objects are equal' do
|
98
|
+
obj = Object.new()
|
99
|
+
instance_1 = Freeclimb::CompletionResult.new(
|
100
|
+
response: "TS",
|
101
|
+
status: "success",
|
102
|
+
)
|
103
|
+
instance_2 = Freeclimb::CompletionResult.new(
|
104
|
+
response: "TS",
|
105
|
+
status: "success",
|
106
|
+
)
|
107
|
+
expect(instance_1.eql?(instance_2)).to eq(true)
|
108
|
+
end
|
109
|
+
|
110
|
+
it 'checks if objects are not equal' do
|
111
|
+
instance_1 = Freeclimb::CompletionResult.new(
|
112
|
+
response: "TS",
|
113
|
+
status: "success",
|
114
|
+
)
|
115
|
+
instance_2 = Freeclimb::CompletionResult.new(
|
116
|
+
response: "ST",
|
117
|
+
status: "success",
|
118
|
+
)
|
119
|
+
expect(instance_1.eql?(instance_2)).to eq(false)
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
describe 'test method "hash"' do
|
124
|
+
it 'calculates hash code' do
|
125
|
+
instance = Freeclimb::CompletionResult.new(
|
126
|
+
response: "TS",
|
127
|
+
status: "success",
|
128
|
+
)
|
129
|
+
expect(instance.hash).to be_a_kind_of(Integer)
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
describe 'test method "build_from_hash"' do
|
134
|
+
it 'builds equivalent model from hash code' do
|
135
|
+
instance_1 = Freeclimb::CompletionResult.new(
|
136
|
+
response: "TS",
|
137
|
+
status: "success",
|
138
|
+
)
|
139
|
+
instance_2 = Freeclimb::CompletionResult.new
|
140
|
+
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
describe 'test method "_deserialize"' do
|
145
|
+
instance = Freeclimb::CompletionResult.new(
|
146
|
+
response: "TS",
|
147
|
+
status: "success",
|
148
|
+
)
|
149
|
+
it 'deserializes the data of response' do
|
150
|
+
expect(instance._deserialize("String", instance.response)).to be_a_kind_of(String)
|
151
|
+
end
|
152
|
+
it 'deserializes the data of status' do
|
153
|
+
expect(instance._deserialize("String", instance.status)).to be_a_kind_of(String)
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
describe 'test method "to_s"' do
|
158
|
+
it 'returns the string representation of the object' do
|
159
|
+
instance = Freeclimb::CompletionResult.new(
|
160
|
+
response: "TS",
|
161
|
+
status: "success",
|
162
|
+
)
|
163
|
+
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
describe 'test method "to_hash"' do
|
168
|
+
it 'returns the object in the form of hash' do
|
169
|
+
instance = Freeclimb::CompletionResult.new(
|
170
|
+
response: "TS",
|
171
|
+
status: "success",
|
172
|
+
)
|
173
|
+
expect(instance.to_hash).to be_a_kind_of(Hash)
|
174
|
+
end
|
175
|
+
it 'creates equal hash for two equal objects' do
|
176
|
+
obj = Object.new()
|
177
|
+
instance_1 = Freeclimb::CompletionResult.new(
|
178
|
+
response: "TS",
|
179
|
+
status: "success",
|
180
|
+
)
|
181
|
+
instance_2 = Freeclimb::CompletionResult.new(
|
182
|
+
response: "TS",
|
183
|
+
status: "success",
|
184
|
+
)
|
185
|
+
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
describe 'test method "_to_hash"' do
|
190
|
+
instance = Freeclimb::CompletionResult.new(
|
191
|
+
response: "TS",
|
192
|
+
|
193
|
+
status: "success",
|
194
|
+
)
|
195
|
+
it 'returns response in the form of hash' do
|
196
|
+
expect(instance._to_hash(instance.response)).to eq(instance.response)
|
197
|
+
end
|
198
|
+
it 'returns status in the form of hash' do
|
199
|
+
expect(instance._to_hash(instance.status)).to eq(instance.status)
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
end
|
@@ -158,7 +158,8 @@ describe Freeclimb::ConferenceParticipantList do
|
|
158
158
|
expect(instance.valid?).to eq(true)
|
159
159
|
end
|
160
160
|
|
161
|
-
|
161
|
+
|
162
|
+
skip 'checks if properties are invalid' do
|
162
163
|
instance = Freeclimb::ConferenceParticipantList.new(
|
163
164
|
|
164
165
|
)
|
@@ -172,11 +172,9 @@ describe Freeclimb::ConferenceParticipantResult do
|
|
172
172
|
expect(instance.valid?).to eq(true)
|
173
173
|
end
|
174
174
|
|
175
|
-
|
175
|
+
|
176
|
+
skip 'checks if properties are invalid' do
|
176
177
|
instance = Freeclimb::ConferenceParticipantResult.new(
|
177
|
-
talk: nil,
|
178
|
-
listen: nil,
|
179
|
-
start_conf_on_enter: nil,
|
180
178
|
|
181
179
|
)
|
182
180
|
expect(instance.valid?).to eq(false)
|
@@ -245,9 +245,9 @@ describe Freeclimb::ConferenceResult do
|
|
245
245
|
expect(instance.valid?).to eq(true)
|
246
246
|
end
|
247
247
|
|
248
|
-
|
248
|
+
|
249
|
+
skip 'checks if properties are invalid' do
|
249
250
|
instance = Freeclimb::ConferenceResult.new(
|
250
|
-
record: nil,
|
251
251
|
|
252
252
|
)
|
253
253
|
expect(instance.valid?).to eq(false)
|
@@ -122,9 +122,9 @@ describe Freeclimb::CreateConferenceRequest do
|
|
122
122
|
expect(instance.valid?).to eq(true)
|
123
123
|
end
|
124
124
|
|
125
|
-
|
125
|
+
|
126
|
+
skip 'checks if properties are invalid' do
|
126
127
|
instance = Freeclimb::CreateConferenceRequest.new(
|
127
|
-
record: nil,
|
128
128
|
|
129
129
|
)
|
130
130
|
expect(instance.valid?).to eq(false)
|
@@ -134,13 +134,10 @@ describe Freeclimb::CreateConference do
|
|
134
134
|
expect(instance.valid?).to eq(true)
|
135
135
|
end
|
136
136
|
|
137
|
-
|
137
|
+
|
138
|
+
skip 'checks if properties are invalid' do
|
138
139
|
instance = Freeclimb::CreateConference.new(
|
139
140
|
|
140
|
-
action_url: nil,
|
141
|
-
_alias: nil,
|
142
|
-
record: nil,
|
143
|
-
|
144
141
|
)
|
145
142
|
expect(instance.valid?).to eq(false)
|
146
143
|
end
|
@@ -89,13 +89,10 @@ describe Freeclimb::CreateWebRTCToken do
|
|
89
89
|
expect(instance.valid?).to eq(true)
|
90
90
|
end
|
91
91
|
|
92
|
-
|
92
|
+
|
93
|
+
skip 'checks if properties are invalid' do
|
93
94
|
instance = Freeclimb::CreateWebRTCToken.new(
|
94
95
|
|
95
|
-
to: nil,
|
96
|
-
|
97
|
-
from: nil,
|
98
|
-
uses: 1,
|
99
96
|
)
|
100
97
|
expect(instance.valid?).to eq(false)
|
101
98
|
end
|
data/spec/models/enqueue_spec.rb
CHANGED
@@ -98,15 +98,10 @@ describe Freeclimb::Enqueue do
|
|
98
98
|
expect(instance.valid?).to eq(true)
|
99
99
|
end
|
100
100
|
|
101
|
-
|
101
|
+
|
102
|
+
skip 'checks if properties are invalid' do
|
102
103
|
instance = Freeclimb::Enqueue.new(
|
103
104
|
|
104
|
-
action_url: nil,
|
105
|
-
|
106
|
-
queue_id: nil,
|
107
|
-
|
108
|
-
wait_url: nil,
|
109
|
-
|
110
105
|
)
|
111
106
|
expect(instance.valid?).to eq(false)
|
112
107
|
end
|
@@ -62,11 +62,10 @@ describe Freeclimb::FilterLogsRequest do
|
|
62
62
|
expect(instance.valid?).to eq(true)
|
63
63
|
end
|
64
64
|
|
65
|
-
|
65
|
+
|
66
|
+
skip 'checks if properties are invalid' do
|
66
67
|
instance = Freeclimb::FilterLogsRequest.new(
|
67
68
|
|
68
|
-
pql: nil,
|
69
|
-
|
70
69
|
)
|
71
70
|
expect(instance.valid?).to eq(false)
|
72
71
|
end
|
@@ -166,13 +166,10 @@ describe Freeclimb::GetDigits do
|
|
166
166
|
expect(instance.valid?).to eq(true)
|
167
167
|
end
|
168
168
|
|
169
|
-
|
169
|
+
|
170
|
+
skip 'checks if properties are invalid' do
|
170
171
|
instance = Freeclimb::GetDigits.new(
|
171
172
|
|
172
|
-
action_url: nil,
|
173
|
-
flush_buffer: nil,
|
174
|
-
privacy_mode: nil,
|
175
|
-
|
176
173
|
)
|
177
174
|
expect(instance.valid?).to eq(false)
|
178
175
|
end
|
@@ -216,15 +216,10 @@ describe Freeclimb::GetSpeech do
|
|
216
216
|
expect(instance.valid?).to eq(true)
|
217
217
|
end
|
218
218
|
|
219
|
-
|
219
|
+
|
220
|
+
skip 'checks if properties are invalid' do
|
220
221
|
instance = Freeclimb::GetSpeech.new(
|
221
222
|
|
222
|
-
action_url: nil,
|
223
|
-
|
224
|
-
grammar_file: nil,
|
225
|
-
play_beep: nil,
|
226
|
-
privacy_mode: nil,
|
227
|
-
|
228
223
|
)
|
229
224
|
expect(instance.valid?).to eq(false)
|
230
225
|
end
|
data/spec/models/hangup_spec.rb
CHANGED
@@ -256,11 +256,9 @@ describe Freeclimb::IncomingNumberResult do
|
|
256
256
|
expect(instance.valid?).to eq(true)
|
257
257
|
end
|
258
258
|
|
259
|
-
|
259
|
+
|
260
|
+
skip 'checks if properties are invalid' do
|
260
261
|
instance = Freeclimb::IncomingNumberResult.new(
|
261
|
-
voice_enabled: nil,
|
262
|
-
sms_enabled: nil,
|
263
|
-
offnet: nil,
|
264
262
|
|
265
263
|
)
|
266
264
|
expect(instance.valid?).to eq(false)
|
@@ -172,14 +172,10 @@ describe Freeclimb::MakeCallRequest do
|
|
172
172
|
expect(instance.valid?).to eq(true)
|
173
173
|
end
|
174
174
|
|
175
|
-
|
175
|
+
|
176
|
+
skip 'checks if properties are invalid' do
|
176
177
|
instance = Freeclimb::MakeCallRequest.new(
|
177
178
|
|
178
|
-
from: nil,
|
179
|
-
|
180
|
-
to: nil,
|
181
|
-
privacy_mode: nil,
|
182
|
-
|
183
179
|
)
|
184
180
|
expect(instance.valid?).to eq(false)
|
185
181
|
end
|
@@ -160,15 +160,10 @@ describe Freeclimb::MessageRequest do
|
|
160
160
|
expect(instance.valid?).to eq(true)
|
161
161
|
end
|
162
162
|
|
163
|
-
|
163
|
+
|
164
|
+
skip 'checks if properties are invalid' do
|
164
165
|
instance = Freeclimb::MessageRequest.new(
|
165
166
|
|
166
|
-
from: nil,
|
167
|
-
|
168
|
-
to: nil,
|
169
|
-
|
170
|
-
text: nil,
|
171
|
-
|
172
167
|
)
|
173
168
|
expect(instance.valid?).to eq(false)
|
174
169
|
end
|
@@ -100,7 +100,8 @@ describe Freeclimb::MutableResourceModel do
|
|
100
100
|
expect(instance.valid?).to eq(true)
|
101
101
|
end
|
102
102
|
|
103
|
-
|
103
|
+
|
104
|
+
skip 'checks if properties are invalid' do
|
104
105
|
instance = Freeclimb::MutableResourceModel.new(
|
105
106
|
|
106
107
|
)
|