docspring 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -45
  3. data/Gemfile +2 -1
  4. data/Gemfile.lock +37 -32
  5. data/README.md +15 -9
  6. data/docs/CombinedSubmission.md +1 -0
  7. data/docs/CreateTemplateData.md +1 -1
  8. data/docs/CreateTemplateData1.md +8 -0
  9. data/docs/PDFApi.md +114 -12
  10. data/docs/PendingTemplate.md +1 -0
  11. data/docs/Submission.md +1 -0
  12. data/docs/SubmissionData.md +1 -0
  13. data/docs/SubmissionDataRequest.md +2 -0
  14. data/docs/Template.md +1 -0
  15. data/docs/TemplatesdesccachedUploadTemplate.md +25 -0
  16. data/docs/TemplatesdesccachedUploadTemplateDocument.md +10 -0
  17. data/docs/{Templatesv2TemplateDocumentMetadata.md → TemplatesdesccachedUploadTemplateDocumentMetadata.md} +1 -1
  18. data/docs/{Templatesv2Template.md → TemplatestemplateIdTemplate.md} +10 -6
  19. data/docs/UpdateTemplateData.md +8 -0
  20. data/docs/UpdateTemplateResponse.md +9 -0
  21. data/docspring.gemspec +1 -1
  22. data/lib/docspring.rb +7 -3
  23. data/lib/docspring/api/pdf_api.rb +128 -16
  24. data/lib/docspring/models/combined_submission.rb +10 -1
  25. data/lib/docspring/models/create_template_data.rb +1 -1
  26. data/lib/docspring/models/create_template_data1.rb +188 -0
  27. data/lib/docspring/models/pending_template.rb +10 -1
  28. data/lib/docspring/models/submission.rb +12 -3
  29. data/lib/docspring/models/submission_data.rb +10 -1
  30. data/lib/docspring/models/submission_data_request.rb +22 -4
  31. data/lib/docspring/models/template.rb +10 -1
  32. data/lib/docspring/models/templatesdesccached_upload_template.rb +382 -0
  33. data/lib/docspring/models/{templatesv2_template_document.rb → templatesdesccached_upload_template_document.rb} +2 -2
  34. data/lib/docspring/models/{templatesv2_template_document_metadata.rb → templatesdesccached_upload_template_document_metadata.rb} +1 -1
  35. data/lib/docspring/models/{templatesv2_template.rb → templatestemplate_id_template.rb} +77 -41
  36. data/lib/docspring/models/update_template_data.rb +188 -0
  37. data/lib/docspring/models/update_template_response.rb +228 -0
  38. data/lib/docspring/version.rb +1 -1
  39. data/spec/api/client_integration_spec.rb +14 -2
  40. data/spec/api/pdf_api_spec_original.skipped.rb +33 -7
  41. data/spec/models/combined_submission_spec.rb +6 -0
  42. data/spec/models/create_template_data1_spec.rb +41 -0
  43. data/spec/models/pending_template_spec.rb +6 -0
  44. data/spec/models/submission_data_request_spec.rb +12 -0
  45. data/spec/models/submission_data_spec.rb +6 -0
  46. data/spec/models/submission_spec.rb +7 -1
  47. data/spec/models/template_spec.rb +6 -0
  48. data/spec/models/{templatesv2_template_document_metadata_spec.rb → templatesdesccached_upload_template_document_metadata_spec.rb} +6 -6
  49. data/spec/models/{templatesv2_template_document_spec.rb → templatesdesccached_upload_template_document_spec.rb} +6 -6
  50. data/spec/models/templatesdesccached_upload_template_spec.rb +151 -0
  51. data/spec/models/{templatesv2_template_spec.rb → templatestemplate_id_template_spec.rb} +39 -15
  52. data/spec/models/update_template_data_spec.rb +41 -0
  53. data/spec/models/update_template_response_spec.rb +51 -0
  54. metadata +39 -27
  55. data/.swagger-codegen-ignore +0 -31
  56. data/.swagger-codegen/VERSION +0 -1
  57. data/.swagger-revision +0 -1
  58. data/.travis.yml +0 -8
  59. data/docs/Templatesv2TemplateDocument.md +0 -10
@@ -11,5 +11,5 @@ OpenAPI Generator version: 3.3.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module DocSpring
14
- VERSION = '1.0.0'
14
+ VERSION = '1.1.0'
15
15
  end
@@ -6,6 +6,8 @@ describe DocSpring::Client do
6
6
  DocSpring.configure do |c|
7
7
  c.api_token_id = 'api_token123'
8
8
  c.api_token_secret = 'testsecret123'
9
+ end
10
+ DocSpring.configure do |c|
9
11
  c.host = 'http://api.docspring.local:31337'
10
12
  end
11
13
  end
@@ -16,20 +18,25 @@ describe DocSpring::Client do
16
18
  template_id = 'tpl_000000000000000001'
17
19
 
18
20
  expect(client).to receive(:sleep).with(1).once
19
-
20
21
  response = client.generate_pdf(
21
22
  template_id: template_id,
22
23
  data: {
23
24
  title: 'Test PDF',
24
25
  description: 'This PDF is great!',
26
+ },
27
+ field_overrides: {
28
+ title: {
29
+ required: false
30
+ }
25
31
  }
26
32
  )
33
+ submission = response.submission
27
34
 
28
35
  expect(response.status).to eq 'success'
29
- submission = response.submission
30
36
  expect(submission.id).to start_with 'sub_'
31
37
  expect(submission.expired).to eq false
32
38
  expect(submission.state).to eq 'processed'
39
+ expect(submission.pdf_hash).to eq 'TEST_SUBMISSION_SHA256_HASH'
33
40
  expect(submission.download_url).to include 'submissions/submission.pdf'
34
41
  end
35
42
 
@@ -98,6 +105,7 @@ describe DocSpring::Client do
98
105
  expect(submission1.id).to start_with 'sub_'
99
106
  expect(submission1.expired).to eq false
100
107
  expect(submission1.state).to eq 'processed'
108
+ expect(submission1.pdf_hash).to eq 'TEST_SUBMISSION_SHA256_HASH'
101
109
  expect(submission1.download_url).to include 'submissions/submission.pdf'
102
110
 
103
111
  submission_response2 = response.submissions[1]
@@ -105,6 +113,7 @@ describe DocSpring::Client do
105
113
  submission2 = submission_response2.submission
106
114
  expect(submission2.id).to start_with 'sub_'
107
115
  expect(submission2.expired).to eq false
116
+ expect(submission2.pdf_hash).to eq 'TEST_SUBMISSION_SHA256_HASH'
108
117
  expect(submission2.state).to eq 'processed'
109
118
  end
110
119
 
@@ -154,6 +163,7 @@ describe DocSpring::Client do
154
163
  submission2 = submission_response2.submission
155
164
  expect(submission2.id).to start_with 'sub_'
156
165
  expect(submission2.expired).to eq false
166
+ expect(submission2.pdf_hash).to eq nil
157
167
  expect(submission2.state).to eq 'invalid_data'
158
168
  end
159
169
  end
@@ -212,6 +222,7 @@ describe DocSpring::Client do
212
222
  )
213
223
  expect(combined_submission.download_url).to include(
214
224
  'combined_submissions/combined_submission.pdf')
225
+ expect(combined_submission.pdf_hash).to eq 'TEST_COMBINED_SUBMISSION_SHA256_HASH'
215
226
  end
216
227
  end
217
228
 
@@ -254,6 +265,7 @@ describe DocSpring::Client do
254
265
  end
255
266
  expect(combined_submission.download_url).to include(
256
267
  'combined_submissions/combined_submission.pdf')
268
+ expect(combined_submission.pdf_hash).to eq 'TEST_COMBINED_SUBMISSION_SHA256_HASH'
257
269
  end
258
270
  end
259
271
  end
@@ -124,33 +124,45 @@ describe 'PDFApi' do
124
124
  expect(result).to_not be_nil
125
125
  end
126
126
  end
127
- # integration tests for create_template
128
- # Upload a new PDF template with a file upload
127
+ # integration tests for create_html_template
128
+ # Create a new HTML template
129
+ # @param create_template_data1
130
+ # @param [Hash] opts the optional parameters
131
+ # @return [PendingTemplate]
132
+ describe 'create_html_template test' do
133
+ it 'should work' do
134
+ create_template_data1 = DocSpring::CreateTemplateData1.new # CreateTemplateData1 |
135
+ result = api_instance.create_html_template(create_template_data1)
136
+ expect(result).to_not be_nil
137
+ end
138
+ end
139
+ # integration tests for create_pdf_template
140
+ # Create a new PDF template with a form POST file upload
129
141
  # @param template_document
130
142
  # @param template_name
131
143
  # @param [Hash] opts the optional parameters
132
144
  # @option opts [String] :template_parent_folder_id
133
145
  # @return [PendingTemplate]
134
- describe 'create_template test' do
146
+ describe 'create_pdf_template test' do
135
147
  it 'should work' do
136
148
  template_document = File.new('/path/to/file') # File |
137
149
  template_name = 'template_name_example' # String |
138
150
  opts = {
139
151
  template_parent_folder_id: 'template_parent_folder_id_example' # String |
140
152
  }
141
- result = api_instance.create_template(template_document, template_name, opts)
153
+ result = api_instance.create_pdf_template(template_document, template_name, opts)
142
154
  expect(result).to_not be_nil
143
155
  end
144
156
  end
145
- # integration tests for create_template_from_upload
157
+ # integration tests for create_pdf_template_from_upload
146
158
  # Create a new PDF template from a cached presign upload
147
159
  # @param create_template_data
148
160
  # @param [Hash] opts the optional parameters
149
161
  # @return [PendingTemplate]
150
- describe 'create_template_from_upload test' do
162
+ describe 'create_pdf_template_from_upload test' do
151
163
  it 'should work' do
152
164
  create_template_data = DocSpring::CreateTemplateData.new # CreateTemplateData |
153
- result = api_instance.create_template_from_upload(create_template_data)
165
+ result = api_instance.create_pdf_template_from_upload(create_template_data)
154
166
  expect(result).to_not be_nil
155
167
  end
156
168
  end
@@ -394,4 +406,18 @@ describe 'PDFApi' do
394
406
  expect(result).to_not be_nil
395
407
  end
396
408
  end
409
+ # integration tests for update_template
410
+ # Update a Template
411
+ # @param template_id
412
+ # @param update_template_data
413
+ # @param [Hash] opts the optional parameters
414
+ # @return [UpdateTemplateResponse]
415
+ describe 'update_template test' do
416
+ it 'should work' do
417
+ template_id = 'tpl_000000000000000003' # String |
418
+ update_template_data = DocSpring::UpdateTemplateData.new # UpdateTemplateData |
419
+ result = api_instance.update_template(template_id, update_template_data)
420
+ expect(result).to_not be_nil
421
+ end
422
+ end
397
423
  end
@@ -56,6 +56,12 @@ describe 'CombinedSubmission' do
56
56
  end
57
57
  end
58
58
 
59
+ describe 'test attribute "pdf_hash"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
59
65
  describe 'test attribute "download_url"' do
60
66
  it 'should work' do
61
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #API v1
3
+
4
+ #DocSpring is a service that helps you fill out and sign PDF templates.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 3.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for DocSpring::CreateTemplateData1
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'CreateTemplateData1' do
21
+ before do
22
+ # run before each test
23
+ @instance = DocSpring::CreateTemplateData1.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of CreateTemplateData1' do
31
+ it 'should create an instance of CreateTemplateData1' do
32
+ expect(@instance).to be_instance_of(DocSpring::CreateTemplateData1)
33
+ end
34
+ end
35
+ describe 'test attribute "template"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ end
@@ -66,6 +66,12 @@ describe 'PendingTemplate' do
66
66
  end
67
67
  end
68
68
 
69
+ describe 'test attribute "description"' do
70
+ it 'should work' do
71
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
+ end
73
+ end
74
+
69
75
  describe 'test attribute "public_submissions"' do
70
76
  it 'should work' do
71
77
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -146,4 +146,16 @@ describe 'SubmissionDataRequest' do
146
146
  end
147
147
  end
148
148
 
149
+ describe 'test attribute "ip_address"' do
150
+ it 'should work' do
151
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
152
+ end
153
+ end
154
+
155
+ describe 'test attribute "user_agent"' do
156
+ it 'should work' do
157
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
158
+ end
159
+ end
160
+
149
161
  end
@@ -62,6 +62,12 @@ describe 'SubmissionData' do
62
62
  end
63
63
  end
64
64
 
65
+ describe 'test attribute "field_overrides"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
65
71
  describe 'test attribute "data_requests"' do
66
72
  it 'should work' do
67
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -77,7 +77,7 @@ describe 'Submission' do
77
77
  describe 'test attribute "state"' do
78
78
  it 'should work' do
79
79
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pending", "processed", "invalid_data", "error", "image_download_failed", "image_processing_failed", "waiting_for_data_requests", "syntax_error", "account_suspended", "license_revoked"])
80
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pending", "processed", "invalid_data", "error", "image_download_failed", "image_processing_failed", "waiting_for_data_requests", "syntax_error", "account_suspended", "license_revoked", "accidental"])
81
81
  # validator.allowable_values.each do |value|
82
82
  # expect { @instance.state = value }.not_to raise_error
83
83
  # end
@@ -90,6 +90,12 @@ describe 'Submission' do
90
90
  end
91
91
  end
92
92
 
93
+ describe 'test attribute "pdf_hash"' do
94
+ it 'should work' do
95
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
96
+ end
97
+ end
98
+
93
99
  describe 'test attribute "download_url"' do
94
100
  it 'should work' do
95
101
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -66,6 +66,12 @@ describe 'Template' do
66
66
  end
67
67
  end
68
68
 
69
+ describe 'test attribute "description"' do
70
+ it 'should work' do
71
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
+ end
73
+ end
74
+
69
75
  describe 'test attribute "public_submissions"' do
70
76
  it 'should work' do
71
77
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -14,22 +14,22 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for DocSpring::Templatesv2TemplateDocumentMetadata
17
+ # Unit tests for DocSpring::TemplatesdesccachedUploadTemplateDocumentMetadata
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe 'Templatesv2TemplateDocumentMetadata' do
20
+ describe 'TemplatesdesccachedUploadTemplateDocumentMetadata' do
21
21
  before do
22
22
  # run before each test
23
- @instance = DocSpring::Templatesv2TemplateDocumentMetadata.new
23
+ @instance = DocSpring::TemplatesdesccachedUploadTemplateDocumentMetadata.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of Templatesv2TemplateDocumentMetadata' do
31
- it 'should create an instance of Templatesv2TemplateDocumentMetadata' do
32
- expect(@instance).to be_instance_of(DocSpring::Templatesv2TemplateDocumentMetadata)
30
+ describe 'test an instance of TemplatesdesccachedUploadTemplateDocumentMetadata' do
31
+ it 'should create an instance of TemplatesdesccachedUploadTemplateDocumentMetadata' do
32
+ expect(@instance).to be_instance_of(DocSpring::TemplatesdesccachedUploadTemplateDocumentMetadata)
33
33
  end
34
34
  end
35
35
  describe 'test attribute "filename"' do
@@ -14,22 +14,22 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for DocSpring::Templatesv2TemplateDocument
17
+ # Unit tests for DocSpring::TemplatesdesccachedUploadTemplateDocument
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe 'Templatesv2TemplateDocument' do
20
+ describe 'TemplatesdesccachedUploadTemplateDocument' do
21
21
  before do
22
22
  # run before each test
23
- @instance = DocSpring::Templatesv2TemplateDocument.new
23
+ @instance = DocSpring::TemplatesdesccachedUploadTemplateDocument.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of Templatesv2TemplateDocument' do
31
- it 'should create an instance of Templatesv2TemplateDocument' do
32
- expect(@instance).to be_instance_of(DocSpring::Templatesv2TemplateDocument)
30
+ describe 'test an instance of TemplatesdesccachedUploadTemplateDocument' do
31
+ it 'should create an instance of TemplatesdesccachedUploadTemplateDocument' do
32
+ expect(@instance).to be_instance_of(DocSpring::TemplatesdesccachedUploadTemplateDocument)
33
33
  end
34
34
  end
35
35
  describe 'test attribute "metadata"' do
@@ -0,0 +1,151 @@
1
+ =begin
2
+ #API v1
3
+
4
+ #DocSpring is a service that helps you fill out and sign PDF templates.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 3.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for DocSpring::TemplatesdesccachedUploadTemplate
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'TemplatesdesccachedUploadTemplate' do
21
+ before do
22
+ # run before each test
23
+ @instance = DocSpring::TemplatesdesccachedUploadTemplate.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of TemplatesdesccachedUploadTemplate' do
31
+ it 'should create an instance of TemplatesdesccachedUploadTemplate' do
32
+ expect(@instance).to be_instance_of(DocSpring::TemplatesdesccachedUploadTemplate)
33
+ end
34
+ end
35
+ describe 'test attribute "expiration_interval"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["minutes", "hours", "days"])
39
+ # validator.allowable_values.each do |value|
40
+ # expect { @instance.expiration_interval = value }.not_to raise_error
41
+ # end
42
+ end
43
+ end
44
+
45
+ describe 'test attribute "webhook_url"' do
46
+ it 'should work' do
47
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
48
+ end
49
+ end
50
+
51
+ describe 'test attribute "scss"' do
52
+ it 'should work' do
53
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
+ end
55
+ end
56
+
57
+ describe 'test attribute "expire_after"' do
58
+ it 'should work' do
59
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
60
+ end
61
+ end
62
+
63
+ describe 'test attribute "allow_additional_properties"' do
64
+ it 'should work' do
65
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
66
+ end
67
+ end
68
+
69
+ describe 'test attribute "document"' do
70
+ it 'should work' do
71
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
+ end
73
+ end
74
+
75
+ describe 'test attribute "description"' do
76
+ it 'should work' do
77
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
78
+ end
79
+ end
80
+
81
+ describe 'test attribute "public_submissions"' do
82
+ it 'should work' do
83
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
84
+ end
85
+ end
86
+
87
+ describe 'test attribute "slack_webhook_url"' do
88
+ it 'should work' do
89
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
90
+ end
91
+ end
92
+
93
+ describe 'test attribute "header_html"' do
94
+ it 'should work' do
95
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
96
+ end
97
+ end
98
+
99
+ describe 'test attribute "public_web_form"' do
100
+ it 'should work' do
101
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
102
+ end
103
+ end
104
+
105
+ describe 'test attribute "editable_submissions"' do
106
+ it 'should work' do
107
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
108
+ end
109
+ end
110
+
111
+ describe 'test attribute "expire_submissions"' do
112
+ it 'should work' do
113
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
114
+ end
115
+ end
116
+
117
+ describe 'test attribute "name"' do
118
+ it 'should work' do
119
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
120
+ end
121
+ end
122
+
123
+ describe 'test attribute "html"' do
124
+ it 'should work' do
125
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
126
+ end
127
+ end
128
+
129
+ describe 'test attribute "footer_html"' do
130
+ it 'should work' do
131
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
132
+ end
133
+ end
134
+
135
+ describe 'test attribute "template_type"' do
136
+ it 'should work' do
137
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
138
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pdf", "html"])
139
+ # validator.allowable_values.each do |value|
140
+ # expect { @instance.template_type = value }.not_to raise_error
141
+ # end
142
+ end
143
+ end
144
+
145
+ describe 'test attribute "redirect_url"' do
146
+ it 'should work' do
147
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
148
+ end
149
+ end
150
+
151
+ end