test_kaferi_cloud 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{D://tmp//2018-02027//Ruby//.gitignore → .gitignore} +0 -0
- data/{D://tmp//2018-02027//Ruby//.swagger-codegen-ignore → .swagger-codegen-ignore} +0 -0
- data/{D://tmp//2018-02027//Ruby//.swagger-codegen/ → .swagger-codegen}/VERSION +0 -0
- data/{D://tmp//2018-02027//Ruby//LICENSE → LICENSE} +0 -0
- data/{D://tmp//2018-02027//Ruby//README.md → README.md} +0 -0
- data/{D://tmp//2018-02027//Ruby//lib/ → lib}/test_kaferi_cloud.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//api/ → lib/test_kaferi_cloud/api}/pdf_api.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud/ → lib/test_kaferi_cloud}/api_client.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud/ → lib/test_kaferi_cloud}/api_error.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud/ → lib/test_kaferi_cloud}/configuration.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/annotation.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/annotation_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/annotations.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/annotations_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/append_document.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/attachment.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/attachment_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/attachments.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/attachments_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/bookmarks.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/bookmarks_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/color.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/document.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/document_pages_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/document_properties.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/document_properties_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/document_property.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/document_property_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/document_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/document_text_replace_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/field.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/field_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/field_type.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/fields.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/fields_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/font_styles.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/horizontal_alignment.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/http_status_code.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/image.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/image_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/images.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/images_list_request.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/images_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/line_spacing.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/link.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/link_action_type.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/link_annotation.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/link_annotation_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/link_annotations.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/link_annotations_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/link_element.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/link_highlighting_mode.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/merge_documents.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/optimize_options.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/page.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/page_text_replace_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/page_word_count.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/pages.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/paragraph.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/rectangle.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/rotation.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/saa_spose_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/segment.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/signature.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/signature_type.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/split_result.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/split_result_document.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/split_result_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/stamp.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/stamp_type.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/text_format.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/text_format_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/text_horizontal_alignment.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/text_item.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/text_item_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/text_items.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/text_items_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/text_line.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/text_rect.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/text_rects.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/text_rects_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/text_replace.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/text_replace_list_request.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/text_replace_request.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/text_replace_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/text_state.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/tiff_export_options.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/vertical_alignment.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/word_count.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/word_count_response.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models/ → lib/test_kaferi_cloud/models}/wrap_mode.rb +0 -0
- data/{D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud/ → lib/test_kaferi_cloud}/version.rb +1 -1
- data/spec/api/pdf_api_spec.rb +956 -0
- data/spec/api_client_spec.rb +235 -0
- data/spec/configuration_spec.rb +51 -0
- data/spec/models/annotation_response_spec.rb +63 -0
- data/spec/models/annotation_spec.rb +87 -0
- data/spec/models/annotations_response_spec.rb +63 -0
- data/spec/models/annotations_spec.rb +57 -0
- data/spec/models/append_document_spec.rb +63 -0
- data/spec/models/attachment_response_spec.rb +63 -0
- data/spec/models/attachment_spec.rb +93 -0
- data/spec/models/attachments_response_spec.rb +63 -0
- data/spec/models/attachments_spec.rb +57 -0
- data/spec/models/bookmarks_response_spec.rb +63 -0
- data/spec/models/bookmarks_spec.rb +57 -0
- data/spec/models/color_spec.rb +69 -0
- data/spec/models/document_pages_response_spec.rb +63 -0
- data/spec/models/document_properties_response_spec.rb +63 -0
- data/spec/models/document_properties_spec.rb +57 -0
- data/spec/models/document_property_response_spec.rb +63 -0
- data/spec/models/document_property_spec.rb +69 -0
- data/spec/models/document_response_spec.rb +69 -0
- data/spec/models/document_spec.rb +63 -0
- data/spec/models/document_text_replace_response_spec.rb +69 -0
- data/spec/models/field_response_spec.rb +63 -0
- data/spec/models/field_spec.rb +81 -0
- data/spec/models/field_type_spec.rb +45 -0
- data/spec/models/fields_response_spec.rb +63 -0
- data/spec/models/fields_spec.rb +57 -0
- data/spec/models/font_styles_spec.rb +45 -0
- data/spec/models/horizontal_alignment_spec.rb +45 -0
- data/spec/models/http_status_code_spec.rb +45 -0
- data/spec/models/image_response_spec.rb +63 -0
- data/spec/models/image_spec.rb +63 -0
- data/spec/models/images_list_request_spec.rb +51 -0
- data/spec/models/images_response_spec.rb +63 -0
- data/spec/models/images_spec.rb +57 -0
- data/spec/models/line_spacing_spec.rb +45 -0
- data/spec/models/link_action_type_spec.rb +45 -0
- data/spec/models/link_annotation_response_spec.rb +63 -0
- data/spec/models/link_annotation_spec.rb +75 -0
- data/spec/models/link_annotations_response_spec.rb +63 -0
- data/spec/models/link_annotations_spec.rb +57 -0
- data/spec/models/link_element_spec.rb +51 -0
- data/spec/models/link_highlighting_mode_spec.rb +45 -0
- data/spec/models/link_spec.rb +69 -0
- data/spec/models/merge_documents_spec.rb +51 -0
- data/spec/models/optimize_options_spec.rb +87 -0
- data/spec/models/page_spec.rb +69 -0
- data/spec/models/page_text_replace_response_spec.rb +69 -0
- data/spec/models/page_word_count_spec.rb +57 -0
- data/spec/models/pages_spec.rb +57 -0
- data/spec/models/paragraph_spec.rb +117 -0
- data/spec/models/rectangle_spec.rb +69 -0
- data/spec/models/rotation_spec.rb +45 -0
- data/spec/models/saa_spose_response_spec.rb +57 -0
- data/spec/models/segment_spec.rb +57 -0
- data/spec/models/signature_spec.rb +123 -0
- data/spec/models/signature_type_spec.rb +45 -0
- data/spec/models/split_result_document_spec.rb +75 -0
- data/spec/models/split_result_response_spec.rb +63 -0
- data/spec/models/split_result_spec.rb +51 -0
- data/spec/models/stamp_spec.rb +177 -0
- data/spec/models/stamp_type_spec.rb +45 -0
- data/spec/models/text_format_response_spec.rb +63 -0
- data/spec/models/text_format_spec.rb +69 -0
- data/spec/models/text_horizontal_alignment_spec.rb +45 -0
- data/spec/models/text_item_response_spec.rb +63 -0
- data/spec/models/text_item_spec.rb +63 -0
- data/spec/models/text_items_response_spec.rb +63 -0
- data/spec/models/text_items_spec.rb +57 -0
- data/spec/models/text_line_spec.rb +57 -0
- data/spec/models/text_rect_spec.rb +63 -0
- data/spec/models/text_rects_response_spec.rb +63 -0
- data/spec/models/text_rects_spec.rb +51 -0
- data/spec/models/text_replace_list_request_spec.rb +69 -0
- data/spec/models/text_replace_request_spec.rb +81 -0
- data/spec/models/text_replace_response_spec.rb +63 -0
- data/spec/models/text_replace_spec.rb +75 -0
- data/spec/models/text_state_spec.rb +75 -0
- data/spec/models/tiff_export_options_spec.rb +141 -0
- data/spec/models/vertical_alignment_spec.rb +45 -0
- data/spec/models/word_count_response_spec.rb +63 -0
- data/spec/models/word_count_spec.rb +51 -0
- data/spec/models/wrap_mode_spec.rb +45 -0
- data/spec/spec_helper.rb +120 -0
- data/{D://tmp//2018-02027//Ruby//test_kaferi_cloud.gemspec → test_kaferi_cloud.gemspec} +2 -1
- metadata +179 -101
- data/D://tmp//2018-02027//Ruby//.idea//.rakeTasks +0 -7
- data/D://tmp//2018-02027//Ruby//.idea//inspectionProfiles//Project_Default.xml +0 -6
- data/D://tmp//2018-02027//Ruby//.idea//misc.xml +0 -4
- data/D://tmp//2018-02027//Ruby//.idea//modules.xml +0 -8
- data/D://tmp//2018-02027//Ruby//.idea//ruby.iml +0 -15
- data/D://tmp//2018-02027//Ruby//.idea//vcs.xml +0 -6
- data/D://tmp//2018-02027//Ruby//.idea//workspace.xml +0 -776
@@ -0,0 +1,75 @@
|
|
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::TextState
|
27
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
28
|
+
# Please update as you see appropriate
|
29
|
+
describe 'TextState' do
|
30
|
+
before do
|
31
|
+
# run before each test
|
32
|
+
@instance = TestKaferiCloud::TextState.new
|
33
|
+
end
|
34
|
+
|
35
|
+
after do
|
36
|
+
# run after each test
|
37
|
+
end
|
38
|
+
|
39
|
+
describe 'test an instance of TextState' do
|
40
|
+
it 'should create an instance of TextState' do
|
41
|
+
expect(@instance).to be_instance_of(TestKaferiCloud::TextState)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
describe 'test attribute "font_size"' 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 "font"' 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 "foreground_color"' 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 "background_color"' 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 "font_style"' 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
|
+
end
|
75
|
+
|
@@ -0,0 +1,141 @@
|
|
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::TiffExportOptions
|
27
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
28
|
+
# Please update as you see appropriate
|
29
|
+
describe 'TiffExportOptions' do
|
30
|
+
before do
|
31
|
+
# run before each test
|
32
|
+
@instance = TestKaferiCloud::TiffExportOptions.new
|
33
|
+
end
|
34
|
+
|
35
|
+
after do
|
36
|
+
# run after each test
|
37
|
+
end
|
38
|
+
|
39
|
+
describe 'test an instance of TiffExportOptions' do
|
40
|
+
it 'should create an instance of TiffExportOptions' do
|
41
|
+
expect(@instance).to be_instance_of(TestKaferiCloud::TiffExportOptions)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
describe 'test attribute "brightness"' 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 "compression"' 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 "color_depth"' 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 "left_margin"' 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 "right_margin"' 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 "top_margin"' 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 "bottom_margin"' 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
|
+
describe 'test attribute "orientation"' do
|
87
|
+
it 'should work' do
|
88
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
describe 'test attribute "skip_blank_pages"' do
|
93
|
+
it 'should work' do
|
94
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
describe 'test attribute "width"' do
|
99
|
+
it 'should work' do
|
100
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
describe 'test attribute "height"' do
|
105
|
+
it 'should work' do
|
106
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
describe 'test attribute "x_resolution"' do
|
111
|
+
it 'should work' do
|
112
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
describe 'test attribute "y_resolution"' do
|
117
|
+
it 'should work' do
|
118
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
describe 'test attribute "page_index"' do
|
123
|
+
it 'should work' do
|
124
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
describe 'test attribute "page_count"' do
|
129
|
+
it 'should work' do
|
130
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
describe 'test attribute "result_file"' do
|
135
|
+
it 'should work' do
|
136
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
end
|
141
|
+
|
@@ -0,0 +1,45 @@
|
|
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::VerticalAlignment
|
27
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
28
|
+
# Please update as you see appropriate
|
29
|
+
describe 'VerticalAlignment' do
|
30
|
+
before do
|
31
|
+
# run before each test
|
32
|
+
@instance = TestKaferiCloud::VerticalAlignment.new
|
33
|
+
end
|
34
|
+
|
35
|
+
after do
|
36
|
+
# run after each test
|
37
|
+
end
|
38
|
+
|
39
|
+
describe 'test an instance of VerticalAlignment' do
|
40
|
+
it 'should create an instance of VerticalAlignment' do
|
41
|
+
expect(@instance).to be_instance_of(TestKaferiCloud::VerticalAlignment)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
@@ -0,0 +1,63 @@
|
|
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::WordCountResponse
|
27
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
28
|
+
# Please update as you see appropriate
|
29
|
+
describe 'WordCountResponse' do
|
30
|
+
before do
|
31
|
+
# run before each test
|
32
|
+
@instance = TestKaferiCloud::WordCountResponse.new
|
33
|
+
end
|
34
|
+
|
35
|
+
after do
|
36
|
+
# run after each test
|
37
|
+
end
|
38
|
+
|
39
|
+
describe 'test an instance of WordCountResponse' do
|
40
|
+
it 'should create an instance of WordCountResponse' do
|
41
|
+
expect(@instance).to be_instance_of(TestKaferiCloud::WordCountResponse)
|
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 "words_per_page"' 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
|
+
|
@@ -0,0 +1,51 @@
|
|
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::WordCount
|
27
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
28
|
+
# Please update as you see appropriate
|
29
|
+
describe 'WordCount' do
|
30
|
+
before do
|
31
|
+
# run before each test
|
32
|
+
@instance = TestKaferiCloud::WordCount.new
|
33
|
+
end
|
34
|
+
|
35
|
+
after do
|
36
|
+
# run after each test
|
37
|
+
end
|
38
|
+
|
39
|
+
describe 'test an instance of WordCount' do
|
40
|
+
it 'should create an instance of WordCount' do
|
41
|
+
expect(@instance).to be_instance_of(TestKaferiCloud::WordCount)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
describe 'test attribute "list"' 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
|
+
end
|
51
|
+
|
@@ -0,0 +1,45 @@
|
|
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::WrapMode
|
27
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
28
|
+
# Please update as you see appropriate
|
29
|
+
describe 'WrapMode' do
|
30
|
+
before do
|
31
|
+
# run before each test
|
32
|
+
@instance = TestKaferiCloud::WrapMode.new
|
33
|
+
end
|
34
|
+
|
35
|
+
after do
|
36
|
+
# run after each test
|
37
|
+
end
|
38
|
+
|
39
|
+
describe 'test an instance of WrapMode' do
|
40
|
+
it 'should create an instance of WrapMode' do
|
41
|
+
expect(@instance).to be_instance_of(TestKaferiCloud::WrapMode)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,120 @@
|
|
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
|
+
# load the gem
|
23
|
+
require 'test_kaferi_cloud'
|
24
|
+
|
25
|
+
# The following was generated by the `rspec --init` command. Conventionally, all
|
26
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
27
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
28
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
29
|
+
# files.
|
30
|
+
#
|
31
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
32
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
33
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
34
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
35
|
+
# a separate helper file that requires the additional dependencies and performs
|
36
|
+
# the additional setup, and require it from the spec files that actually need
|
37
|
+
# it.
|
38
|
+
#
|
39
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
40
|
+
# users commonly want.
|
41
|
+
#
|
42
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
43
|
+
RSpec.configure do |config|
|
44
|
+
# rspec-expectations config goes here. You can use an alternate
|
45
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
46
|
+
# assertions if you prefer.
|
47
|
+
config.expect_with :rspec do |expectations|
|
48
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
49
|
+
# and `failure_message` of custom matchers include text for helper methods
|
50
|
+
# defined using `chain`, e.g.:
|
51
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
52
|
+
# # => "be bigger than 2 and smaller than 4"
|
53
|
+
# ...rather than:
|
54
|
+
# # => "be bigger than 2"
|
55
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
56
|
+
end
|
57
|
+
|
58
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
59
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
60
|
+
config.mock_with :rspec do |mocks|
|
61
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
62
|
+
# a real object. This is generally recommended, and will default to
|
63
|
+
# `true` in RSpec 4.
|
64
|
+
mocks.verify_partial_doubles = true
|
65
|
+
end
|
66
|
+
|
67
|
+
# The settings below are suggested to provide a good initial experience
|
68
|
+
# with RSpec, but feel free to customize to your heart's content.
|
69
|
+
=begin
|
70
|
+
# These two settings work together to allow you to limit a spec run
|
71
|
+
# to individual examples or groups you care about by tagging them with
|
72
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
73
|
+
# get run.
|
74
|
+
config.filter_run :focus
|
75
|
+
config.run_all_when_everything_filtered = true
|
76
|
+
|
77
|
+
# Allows RSpec to persist some state between runs in order to support
|
78
|
+
# the `--only-failures` and `--next-failure` CLI options. We recommend
|
79
|
+
# you configure your source control system to ignore this file.
|
80
|
+
config.example_status_persistence_file_path = "spec/examples.txt"
|
81
|
+
|
82
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
83
|
+
# recommended. For more details, see:
|
84
|
+
# - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
|
85
|
+
# - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
86
|
+
# - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
|
87
|
+
config.disable_monkey_patching!
|
88
|
+
|
89
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
90
|
+
# be too noisy due to issues in dependencies.
|
91
|
+
config.warnings = true
|
92
|
+
|
93
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
94
|
+
# file, and it's useful to allow more verbose output when running an
|
95
|
+
# individual spec file.
|
96
|
+
if config.files_to_run.one?
|
97
|
+
# Use the documentation formatter for detailed output,
|
98
|
+
# unless a formatter has already been configured
|
99
|
+
# (e.g. via a command-line flag).
|
100
|
+
config.default_formatter = 'doc'
|
101
|
+
end
|
102
|
+
|
103
|
+
# Print the 10 slowest examples and example groups at the
|
104
|
+
# end of the spec run, to help surface which specs are running
|
105
|
+
# particularly slow.
|
106
|
+
config.profile_examples = 10
|
107
|
+
|
108
|
+
# Run specs in random order to surface order dependencies. If you find an
|
109
|
+
# order dependency and want to debug it, you can fix the order by providing
|
110
|
+
# the seed, which is printed after each run.
|
111
|
+
# --seed 1234
|
112
|
+
config.order = :random
|
113
|
+
|
114
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
115
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
116
|
+
# test failures related to randomization by passing the same `--seed` value
|
117
|
+
# as the one that triggered the failure.
|
118
|
+
Kernel.srand config.seed
|
119
|
+
=end
|
120
|
+
end
|