test_kaferi_cloud 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/.swagger-codegen-ignore +1 -1
  3. data/README.md +33 -19
  4. data/lib/test_kaferi_cloud/version.rb +1 -1
  5. data/test/pdf_tests.rb +1268 -0
  6. data/test_data/33539.jpg +0 -0
  7. data/test_data/44781.jpg +0 -0
  8. data/test_data/4pages.pdf +0 -0
  9. data/test_data/BlankWithSignature.pdf +0 -0
  10. data/test_data/Hello_world.pdf +0 -0
  11. data/test_data/HtmlExample1.html +27 -0
  12. data/test_data/Koala.jpg +0 -0
  13. data/test_data/PdfWithAcroForm.pdf +321 -0
  14. data/test_data/PdfWithAnnotations.pdf +720 -1
  15. data/test_data/PdfWithBookmarks.pdf +0 -0
  16. data/test_data/PdfWithEmbeddedFiles.pdf +0 -0
  17. data/test_data/PdfWithImages2.pdf +0 -0
  18. data/test_data/PdfWithLinks.pdf +0 -0
  19. data/test_data/Penguins.jpg +0 -0
  20. data/test_data/butterfly.jpg +0 -0
  21. data/test_data/marketing.pdf +0 -0
  22. data/test_data/rusdoc.pdf +0 -0
  23. data/test_data/test1234.pfx +0 -0
  24. metadata +22 -88
  25. data/.swagger-codegen/VERSION +0 -1
  26. data/spec/api/pdf_api_spec.rb +0 -956
  27. data/spec/api_client_spec.rb +0 -235
  28. data/spec/configuration_spec.rb +0 -51
  29. data/spec/models/annotation_response_spec.rb +0 -63
  30. data/spec/models/annotation_spec.rb +0 -87
  31. data/spec/models/annotations_response_spec.rb +0 -63
  32. data/spec/models/annotations_spec.rb +0 -57
  33. data/spec/models/append_document_spec.rb +0 -63
  34. data/spec/models/attachment_response_spec.rb +0 -63
  35. data/spec/models/attachment_spec.rb +0 -93
  36. data/spec/models/attachments_response_spec.rb +0 -63
  37. data/spec/models/attachments_spec.rb +0 -57
  38. data/spec/models/bookmarks_response_spec.rb +0 -63
  39. data/spec/models/bookmarks_spec.rb +0 -57
  40. data/spec/models/color_spec.rb +0 -69
  41. data/spec/models/document_pages_response_spec.rb +0 -63
  42. data/spec/models/document_properties_response_spec.rb +0 -63
  43. data/spec/models/document_properties_spec.rb +0 -57
  44. data/spec/models/document_property_response_spec.rb +0 -63
  45. data/spec/models/document_property_spec.rb +0 -69
  46. data/spec/models/document_response_spec.rb +0 -69
  47. data/spec/models/document_spec.rb +0 -63
  48. data/spec/models/document_text_replace_response_spec.rb +0 -69
  49. data/spec/models/field_response_spec.rb +0 -63
  50. data/spec/models/field_spec.rb +0 -81
  51. data/spec/models/field_type_spec.rb +0 -45
  52. data/spec/models/fields_response_spec.rb +0 -63
  53. data/spec/models/fields_spec.rb +0 -57
  54. data/spec/models/font_styles_spec.rb +0 -45
  55. data/spec/models/horizontal_alignment_spec.rb +0 -45
  56. data/spec/models/http_status_code_spec.rb +0 -45
  57. data/spec/models/image_response_spec.rb +0 -63
  58. data/spec/models/image_spec.rb +0 -63
  59. data/spec/models/images_list_request_spec.rb +0 -51
  60. data/spec/models/images_response_spec.rb +0 -63
  61. data/spec/models/images_spec.rb +0 -57
  62. data/spec/models/line_spacing_spec.rb +0 -45
  63. data/spec/models/link_action_type_spec.rb +0 -45
  64. data/spec/models/link_annotation_response_spec.rb +0 -63
  65. data/spec/models/link_annotation_spec.rb +0 -75
  66. data/spec/models/link_annotations_response_spec.rb +0 -63
  67. data/spec/models/link_annotations_spec.rb +0 -57
  68. data/spec/models/link_element_spec.rb +0 -51
  69. data/spec/models/link_highlighting_mode_spec.rb +0 -45
  70. data/spec/models/link_spec.rb +0 -69
  71. data/spec/models/merge_documents_spec.rb +0 -51
  72. data/spec/models/optimize_options_spec.rb +0 -87
  73. data/spec/models/page_spec.rb +0 -69
  74. data/spec/models/page_text_replace_response_spec.rb +0 -69
  75. data/spec/models/page_word_count_spec.rb +0 -57
  76. data/spec/models/pages_spec.rb +0 -57
  77. data/spec/models/paragraph_spec.rb +0 -117
  78. data/spec/models/rectangle_spec.rb +0 -69
  79. data/spec/models/rotation_spec.rb +0 -45
  80. data/spec/models/saa_spose_response_spec.rb +0 -57
  81. data/spec/models/segment_spec.rb +0 -57
  82. data/spec/models/signature_spec.rb +0 -123
  83. data/spec/models/signature_type_spec.rb +0 -45
  84. data/spec/models/split_result_document_spec.rb +0 -75
  85. data/spec/models/split_result_response_spec.rb +0 -63
  86. data/spec/models/split_result_spec.rb +0 -51
  87. data/spec/models/stamp_spec.rb +0 -177
  88. data/spec/models/stamp_type_spec.rb +0 -45
  89. data/spec/models/text_format_response_spec.rb +0 -63
  90. data/spec/models/text_format_spec.rb +0 -69
  91. data/spec/models/text_horizontal_alignment_spec.rb +0 -45
  92. data/spec/models/text_item_response_spec.rb +0 -63
  93. data/spec/models/text_item_spec.rb +0 -63
  94. data/spec/models/text_items_response_spec.rb +0 -63
  95. data/spec/models/text_items_spec.rb +0 -57
  96. data/spec/models/text_line_spec.rb +0 -57
  97. data/spec/models/text_rect_spec.rb +0 -63
  98. data/spec/models/text_rects_response_spec.rb +0 -63
  99. data/spec/models/text_rects_spec.rb +0 -51
  100. data/spec/models/text_replace_list_request_spec.rb +0 -69
  101. data/spec/models/text_replace_request_spec.rb +0 -81
  102. data/spec/models/text_replace_response_spec.rb +0 -63
  103. data/spec/models/text_replace_spec.rb +0 -75
  104. data/spec/models/text_state_spec.rb +0 -75
  105. data/spec/models/tiff_export_options_spec.rb +0 -141
  106. data/spec/models/vertical_alignment_spec.rb +0 -45
  107. data/spec/models/word_count_response_spec.rb +0 -63
  108. data/spec/models/word_count_spec.rb +0 -51
  109. data/spec/models/wrap_mode_spec.rb +0 -45
  110. data/spec/spec_helper.rb +0 -120
@@ -1,235 +0,0 @@
1
- =begin
2
- --------------------------------------------------------------------------------------------------------------------
3
- Copyright (c) 2018 Aspose.Pdf for Cloud
4
- Permission is hereby granted, free of charge, to any person obtaining a copy
5
- of this software and associated documentation files (the "Software"), to deal
6
- in the Software without restriction, including without limitation the rights
7
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the Software is
9
- furnished to do so, subject to the following conditions:
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
- SOFTWARE.
19
- --------------------------------------------------------------------------------------------------------------------
20
- =end
21
-
22
- require 'spec_helper'
23
-
24
- describe TestKaferiCloud::ApiClient do
25
- context 'initialization' do
26
- context 'URL stuff' do
27
- context 'host' do
28
- it 'removes http from host' do
29
- TestKaferiCloud.configure { |c| c.host = 'http://example.com' }
30
- expect(TestKaferiCloud::Configuration.default.host).to eq('example.com')
31
- end
32
-
33
- it 'removes https from host' do
34
- TestKaferiCloud.configure { |c| c.host = 'https://wookiee.com' }
35
- expect(TestKaferiCloud::ApiClient.default.config.host).to eq('wookiee.com')
36
- end
37
-
38
- it 'removes trailing path from host' do
39
- TestKaferiCloud.configure { |c| c.host = 'hobo.com/v4' }
40
- expect(TestKaferiCloud::Configuration.default.host).to eq('hobo.com')
41
- end
42
- end
43
-
44
- context 'base_path' do
45
- it "prepends a slash to base_path" do
46
- TestKaferiCloud.configure { |c| c.base_path = 'v4/dog' }
47
- expect(TestKaferiCloud::Configuration.default.base_path).to eq('/v4/dog')
48
- end
49
-
50
- it "doesn't prepend a slash if one is already there" do
51
- TestKaferiCloud.configure { |c| c.base_path = '/v4/dog' }
52
- expect(TestKaferiCloud::Configuration.default.base_path).to eq('/v4/dog')
53
- end
54
-
55
- it "ends up as a blank string if nil" do
56
- TestKaferiCloud.configure { |c| c.base_path = nil }
57
- expect(TestKaferiCloud::Configuration.default.base_path).to eq('')
58
- end
59
- end
60
- end
61
- end
62
-
63
- describe "params_encoding in #build_request" do
64
- let(:config) { TestKaferiCloud::Configuration.new }
65
- let(:api_client) { TestKaferiCloud::ApiClient.new(config) }
66
-
67
- it "defaults to nil" do
68
- expect(TestKaferiCloud::Configuration.default.params_encoding).to eq(nil)
69
- expect(config.params_encoding).to eq(nil)
70
-
71
- request = api_client.build_request(:get, '/test')
72
- expect(request.options[:params_encoding]).to eq(nil)
73
- end
74
-
75
- it "can be customized" do
76
- config.params_encoding = :multi
77
- request = api_client.build_request(:get, '/test')
78
- expect(request.options[:params_encoding]).to eq(:multi)
79
- end
80
- end
81
-
82
- describe "timeout in #build_request" do
83
- let(:config) { TestKaferiCloud::Configuration.new }
84
- let(:api_client) { TestKaferiCloud::ApiClient.new(config) }
85
-
86
- it "defaults to 0" do
87
- expect(TestKaferiCloud::Configuration.default.timeout).to eq(0)
88
- expect(config.timeout).to eq(0)
89
-
90
- request = api_client.build_request(:get, '/test')
91
- expect(request.options[:timeout]).to eq(0)
92
- end
93
-
94
- it "can be customized" do
95
- config.timeout = 100
96
- request = api_client.build_request(:get, '/test')
97
- expect(request.options[:timeout]).to eq(100)
98
- end
99
- end
100
-
101
- describe "#deserialize" do
102
- it "handles Array<Integer>" do
103
- api_client = TestKaferiCloud::ApiClient.new
104
- headers = {'Content-Type' => 'application/json'}
105
- response = double('response', headers: headers, body: '[12, 34]')
106
- data = api_client.deserialize(response, 'Array<Integer>')
107
- expect(data).to be_instance_of(Array)
108
- expect(data).to eq([12, 34])
109
- end
110
-
111
- it "handles Array<Array<Integer>>" do
112
- api_client = TestKaferiCloud::ApiClient.new
113
- headers = {'Content-Type' => 'application/json'}
114
- response = double('response', headers: headers, body: '[[12, 34], [56]]')
115
- data = api_client.deserialize(response, 'Array<Array<Integer>>')
116
- expect(data).to be_instance_of(Array)
117
- expect(data).to eq([[12, 34], [56]])
118
- end
119
-
120
- it "handles Hash<String, String>" do
121
- api_client = TestKaferiCloud::ApiClient.new
122
- headers = {'Content-Type' => 'application/json'}
123
- response = double('response', headers: headers, body: '{"message": "Hello"}')
124
- data = api_client.deserialize(response, 'Hash<String, String>')
125
- expect(data).to be_instance_of(Hash)
126
- expect(data).to eq({:message => 'Hello'})
127
- end
128
- end
129
-
130
- describe "#object_to_hash" do
131
- it "ignores nils and includes empty arrays" do
132
- # uncomment below to test object_to_hash for model
133
- #api_client = TestKaferiCloud::ApiClient.new
134
- #_model = TestKaferiCloud::ModelName.new
135
- # update the model attribute below
136
- #_model.id = 1
137
- # update the expected value (hash) below
138
- #expected = {id: 1, name: '', tags: []}
139
- #expect(api_client.object_to_hash(_model)).to eq(expected)
140
- end
141
- end
142
-
143
- describe "#build_collection_param" do
144
- let(:param) { ['aa', 'bb', 'cc'] }
145
- let(:api_client) { TestKaferiCloud::ApiClient.new }
146
-
147
- it "works for csv" do
148
- expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
149
- end
150
-
151
- it "works for ssv" do
152
- expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
153
- end
154
-
155
- it "works for tsv" do
156
- expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
157
- end
158
-
159
- it "works for pipes" do
160
- expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
161
- end
162
-
163
- it "works for multi" do
164
- expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
165
- end
166
-
167
- it "fails for invalid collection format" do
168
- expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
169
- end
170
- end
171
-
172
- describe "#json_mime?" do
173
- let(:api_client) { TestKaferiCloud::ApiClient.new }
174
-
175
- it "works" do
176
- expect(api_client.json_mime?(nil)).to eq false
177
- expect(api_client.json_mime?('')).to eq false
178
-
179
- expect(api_client.json_mime?('application/json')).to eq true
180
- expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
181
- expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
182
-
183
- expect(api_client.json_mime?('application/xml')).to eq false
184
- expect(api_client.json_mime?('text/plain')).to eq false
185
- expect(api_client.json_mime?('application/jsonp')).to eq false
186
- end
187
- end
188
-
189
- describe "#select_header_accept" do
190
- let(:api_client) { TestKaferiCloud::ApiClient.new }
191
-
192
- it "works" do
193
- expect(api_client.select_header_accept(nil)).to be_nil
194
- expect(api_client.select_header_accept([])).to be_nil
195
-
196
- expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
197
- expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
198
- expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
199
-
200
- expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
201
- expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
202
- end
203
- end
204
-
205
- describe "#select_header_content_type" do
206
- let(:api_client) { TestKaferiCloud::ApiClient.new }
207
-
208
- it "works" do
209
- expect(api_client.select_header_content_type(nil)).to eq('application/json')
210
- expect(api_client.select_header_content_type([])).to eq('application/json')
211
-
212
- expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
213
- expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
214
- expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
215
- expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
216
- expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
217
- end
218
- end
219
-
220
- describe "#sanitize_filename" do
221
- let(:api_client) { TestKaferiCloud::ApiClient.new }
222
-
223
- it "works" do
224
- expect(api_client.sanitize_filename('sun')).to eq('sun')
225
- expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
226
- expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
227
- expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
228
- expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
229
- expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
230
- expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
231
- expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
232
- expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
233
- end
234
- end
235
- end
@@ -1,51 +0,0 @@
1
- =begin
2
- --------------------------------------------------------------------------------------------------------------------
3
- Copyright (c) 2018 Aspose.Pdf for Cloud
4
- Permission is hereby granted, free of charge, to any person obtaining a copy
5
- of this software and associated documentation files (the "Software"), to deal
6
- in the Software without restriction, including without limitation the rights
7
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the Software is
9
- furnished to do so, subject to the following conditions:
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
- SOFTWARE.
19
- --------------------------------------------------------------------------------------------------------------------
20
- =end
21
-
22
- require 'spec_helper'
23
-
24
- describe TestKaferiCloud::Configuration do
25
- let(:config) { TestKaferiCloud::Configuration.default }
26
-
27
- before(:each) do
28
- # uncomment below to setup host and base_path
29
- #require 'URI'
30
- #uri = URI.parse("https://localhost/v1.1")
31
- #TestKaferiCloud.configure do |c|
32
- # c.host = uri.host
33
- # c.base_path = uri.path
34
- #end
35
- end
36
-
37
- describe '#base_url' do
38
- it 'should have the default value' do
39
- # uncomment below to test default value of the base path
40
- #expect(config.base_url).to eq("https://localhost/v1.1")
41
- end
42
-
43
- it 'should remove trailing slashes' do
44
- [nil, '', '/', '//'].each do |base_path|
45
- config.base_path = base_path
46
- # uncomment below to test trailing slashes
47
- #expect(config.base_url).to eq("https://localhost/v1.1")
48
- end
49
- end
50
- end
51
- end
@@ -1,63 +0,0 @@
1
- =begin
2
- --------------------------------------------------------------------------------------------------------------------
3
- Copyright (c) 2018 Aspose.Pdf for Cloud
4
- Permission is hereby granted, free of charge, to any person obtaining a copy
5
- of this software and associated documentation files (the "Software"), to deal
6
- in the Software without restriction, including without limitation the rights
7
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the Software is
9
- furnished to do so, subject to the following conditions:
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
- SOFTWARE.
19
- --------------------------------------------------------------------------------------------------------------------
20
- =end
21
-
22
- require 'spec_helper'
23
- require 'json'
24
- require 'date'
25
-
26
- # Unit tests for TestKaferiCloud::AnnotationResponse
27
- # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
28
- # Please update as you see appropriate
29
- describe 'AnnotationResponse' do
30
- before do
31
- # run before each test
32
- @instance = TestKaferiCloud::AnnotationResponse.new
33
- end
34
-
35
- after do
36
- # run after each test
37
- end
38
-
39
- describe 'test an instance of AnnotationResponse' do
40
- it 'should create an instance of AnnotationResponse' do
41
- expect(@instance).to be_instance_of(TestKaferiCloud::AnnotationResponse)
42
- end
43
- end
44
- describe 'test attribute "code"' do
45
- it 'should work' do
46
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
- end
48
- end
49
-
50
- describe 'test attribute "status"' do
51
- it 'should work' do
52
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
53
- end
54
- end
55
-
56
- describe 'test attribute "annotation"' do
57
- it 'should work' do
58
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
- end
60
- end
61
-
62
- end
63
-
@@ -1,87 +0,0 @@
1
- =begin
2
- --------------------------------------------------------------------------------------------------------------------
3
- Copyright (c) 2018 Aspose.Pdf for Cloud
4
- Permission is hereby granted, free of charge, to any person obtaining a copy
5
- of this software and associated documentation files (the "Software"), to deal
6
- in the Software without restriction, including without limitation the rights
7
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the Software is
9
- furnished to do so, subject to the following conditions:
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
- SOFTWARE.
19
- --------------------------------------------------------------------------------------------------------------------
20
- =end
21
-
22
- require 'spec_helper'
23
- require 'json'
24
- require 'date'
25
-
26
- # Unit tests for TestKaferiCloud::Annotation
27
- # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
28
- # Please update as you see appropriate
29
- describe 'Annotation' do
30
- before do
31
- # run before each test
32
- @instance = TestKaferiCloud::Annotation.new
33
- end
34
-
35
- after do
36
- # run after each test
37
- end
38
-
39
- describe 'test an instance of Annotation' do
40
- it 'should create an instance of Annotation' do
41
- expect(@instance).to be_instance_of(TestKaferiCloud::Annotation)
42
- end
43
- end
44
- describe 'test attribute "links"' do
45
- it 'should work' do
46
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
- end
48
- end
49
-
50
- describe 'test attribute "color"' do
51
- it 'should work' do
52
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
53
- end
54
- end
55
-
56
- describe 'test attribute "contents"' do
57
- it 'should work' do
58
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
- end
60
- end
61
-
62
- describe 'test attribute "creation_date"' do
63
- it 'should work' do
64
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
- end
66
- end
67
-
68
- describe 'test attribute "subject"' do
69
- it 'should work' do
70
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
71
- end
72
- end
73
-
74
- describe 'test attribute "title"' do
75
- it 'should work' do
76
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
77
- end
78
- end
79
-
80
- describe 'test attribute "modified"' do
81
- it 'should work' do
82
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
83
- end
84
- end
85
-
86
- end
87
-
@@ -1,63 +0,0 @@
1
- =begin
2
- --------------------------------------------------------------------------------------------------------------------
3
- Copyright (c) 2018 Aspose.Pdf for Cloud
4
- Permission is hereby granted, free of charge, to any person obtaining a copy
5
- of this software and associated documentation files (the "Software"), to deal
6
- in the Software without restriction, including without limitation the rights
7
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the Software is
9
- furnished to do so, subject to the following conditions:
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
- SOFTWARE.
19
- --------------------------------------------------------------------------------------------------------------------
20
- =end
21
-
22
- require 'spec_helper'
23
- require 'json'
24
- require 'date'
25
-
26
- # Unit tests for TestKaferiCloud::AnnotationsResponse
27
- # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
28
- # Please update as you see appropriate
29
- describe 'AnnotationsResponse' do
30
- before do
31
- # run before each test
32
- @instance = TestKaferiCloud::AnnotationsResponse.new
33
- end
34
-
35
- after do
36
- # run after each test
37
- end
38
-
39
- describe 'test an instance of AnnotationsResponse' do
40
- it 'should create an instance of AnnotationsResponse' do
41
- expect(@instance).to be_instance_of(TestKaferiCloud::AnnotationsResponse)
42
- end
43
- end
44
- describe 'test attribute "code"' do
45
- it 'should work' do
46
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
- end
48
- end
49
-
50
- describe 'test attribute "status"' do
51
- it 'should work' do
52
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
53
- end
54
- end
55
-
56
- describe 'test attribute "annotations"' do
57
- it 'should work' do
58
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
- end
60
- end
61
-
62
- end
63
-