patch_ruby 1.15.2 → 1.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/Gemfile.lock +3 -2
  4. data/README.md +0 -27
  5. data/lib/patch_ruby/api/estimates_api.rb +28 -10
  6. data/lib/patch_ruby/api/orders_api.rb +10 -7
  7. data/lib/patch_ruby/api/projects_api.rb +4 -4
  8. data/lib/patch_ruby/api/technology_types_api.rb +3 -3
  9. data/lib/patch_ruby/api_client.rb +6 -6
  10. data/lib/patch_ruby/api_error.rb +2 -2
  11. data/lib/patch_ruby/configuration.rb +6 -6
  12. data/lib/patch_ruby/models/allocation.rb +2 -2
  13. data/lib/patch_ruby/models/create_bitcoin_estimate_request.rb +2 -2
  14. data/lib/patch_ruby/models/create_ethereum_estimate_request.rb +2 -2
  15. data/lib/patch_ruby/models/create_flight_estimate_request.rb +2 -2
  16. data/lib/patch_ruby/models/create_mass_estimate_request.rb +7 -7
  17. data/lib/patch_ruby/models/create_order_request.rb +7 -7
  18. data/lib/patch_ruby/models/create_shipping_estimate_request.rb +2 -2
  19. data/lib/patch_ruby/models/create_success_response.rb +3 -7
  20. data/lib/patch_ruby/models/create_vehicle_estimate_request.rb +2 -2
  21. data/lib/patch_ruby/models/error_response.rb +3 -7
  22. data/lib/patch_ruby/models/estimate.rb +5 -2
  23. data/lib/patch_ruby/models/estimate_list_response.rb +2 -2
  24. data/lib/patch_ruby/models/estimate_response.rb +2 -2
  25. data/lib/patch_ruby/models/highlight.rb +2 -2
  26. data/lib/patch_ruby/models/meta_index_object.rb +2 -2
  27. data/lib/patch_ruby/models/order.rb +10 -15
  28. data/lib/patch_ruby/models/order_list_response.rb +2 -2
  29. data/lib/patch_ruby/models/order_response.rb +2 -2
  30. data/lib/patch_ruby/models/parent_technology_type.rb +2 -2
  31. data/lib/patch_ruby/models/photo.rb +2 -2
  32. data/lib/patch_ruby/models/project.rb +9 -6
  33. data/lib/patch_ruby/models/project_list_response.rb +2 -2
  34. data/lib/patch_ruby/models/project_response.rb +2 -2
  35. data/lib/patch_ruby/models/sdg.rb +2 -2
  36. data/lib/patch_ruby/models/standard.rb +2 -2
  37. data/lib/patch_ruby/models/technology_type.rb +2 -2
  38. data/lib/patch_ruby/models/technology_type_list_response.rb +2 -2
  39. data/lib/patch_ruby/version.rb +3 -3
  40. data/lib/patch_ruby.rb +2 -7
  41. data/patch_ruby.gemspec +2 -2
  42. data/spec/api_client_spec.rb +4 -4
  43. data/spec/configuration_spec.rb +2 -2
  44. data/spec/integration/orders_spec.rb +1 -3
  45. data/spec/models/error_response_spec.rb +1 -1
  46. data/spec/spec_helper.rb +2 -2
  47. metadata +25 -50
  48. data/lib/patch_ruby/api/preferences_api.rb +0 -284
  49. data/lib/patch_ruby/models/create_preference_request.rb +0 -233
  50. data/lib/patch_ruby/models/preference.rb +0 -264
  51. data/lib/patch_ruby/models/preference_list_response.rb +0 -273
  52. data/lib/patch_ruby/models/preference_response.rb +0 -257
  53. data/spec/api/preferences_api_spec.rb +0 -82
  54. data/spec/factories/create_preference_requests.rb +0 -5
  55. data/spec/factories/preference_list_responses.rb +0 -8
  56. data/spec/factories/preference_responses.rb +0 -7
  57. data/spec/factories/preferences.rb +0 -7
  58. data/spec/integration/preferences_spec.rb +0 -32
  59. data/spec/models/create_preference_request_spec.rb +0 -47
  60. data/spec/models/preference_list_response_spec.rb +0 -64
  61. data/spec/models/preference_response_spec.rb +0 -58
  62. data/spec/models/preference_spec.rb +0 -58
@@ -1,257 +0,0 @@
1
- =begin
2
- #Patch API V1
3
-
4
- #The core API used to integrate with Patch's service
5
-
6
- The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module Patch
17
- class PreferenceResponse
18
- attr_accessor :success
19
-
20
- attr_accessor :error
21
-
22
- attr_accessor :data
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'success' => :'success',
28
- :'error' => :'error',
29
- :'data' => :'data'
30
- }
31
- end
32
-
33
- # Returns all the JSON keys this model knows about
34
- def self.acceptable_attributes
35
- attribute_map.values
36
- end
37
-
38
- # Attribute type mapping.
39
- def self.openapi_types
40
- {
41
- :'success' => :'Boolean',
42
- :'error' => :'Object',
43
- :'data' => :'Preference'
44
- }
45
- end
46
-
47
- # List of attributes with nullable: true
48
- def self.openapi_nullable
49
- Set.new([
50
- :'error',
51
- ])
52
- end
53
-
54
-
55
- # Allows models with corresponding API classes to delegate API operations to those API classes
56
- # Exposes Model.operation_id which delegates to ModelsApi.new.operation_id
57
- # Eg. Order.create_order delegates to OrdersApi.new.create_order
58
- def self.method_missing(message, *args, &block)
59
- if Object.const_defined?('Patch::PreferenceResponsesApi::OPERATIONS') && Patch::PreferenceResponsesApi::OPERATIONS.include?(message)
60
- Patch::PreferenceResponsesApi.new.send(message, *args)
61
- else
62
- super
63
- end
64
- end
65
-
66
- # Initializes the object
67
- # @param [Hash] attributes Model attributes in the form of hash
68
- def initialize(attributes = {})
69
- if (!attributes.is_a?(Hash))
70
- fail ArgumentError, "The input argument (attributes) must be a hash in `Patch::PreferenceResponse` initialize method"
71
- end
72
-
73
- # check to see if the attribute exists and convert string to symbol for hash key
74
- attributes = attributes.each_with_object({}) { |(k, v), h|
75
- if (!self.class.attribute_map.key?(k.to_sym))
76
- fail ArgumentError, "`#{k}` is not a valid attribute in `Patch::PreferenceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
77
- end
78
- h[k.to_sym] = v
79
- }
80
-
81
- if attributes.key?(:'success')
82
- self.success = attributes[:'success']
83
- end
84
-
85
- if attributes.key?(:'error')
86
- self.error = attributes[:'error']
87
- end
88
-
89
- if attributes.key?(:'data')
90
- self.data = attributes[:'data']
91
- end
92
- end
93
-
94
- # Show invalid properties with the reasons. Usually used together with valid?
95
- # @return Array for valid properties with the reasons
96
- def list_invalid_properties
97
- invalid_properties = Array.new
98
- if @success.nil?
99
- invalid_properties.push('invalid value for "success", success cannot be nil.')
100
- end
101
-
102
- if @data.nil?
103
- invalid_properties.push('invalid value for "data", data cannot be nil.')
104
- end
105
-
106
- invalid_properties
107
- end
108
-
109
- # Check to see if the all the properties in the model are valid
110
- # @return true if the model is valid
111
- def valid?
112
- return false if @success.nil?
113
- return false if @data.nil?
114
- true
115
- end
116
-
117
- # Checks equality by comparing each attribute.
118
- # @param [Object] Object to be compared
119
- def ==(o)
120
- return true if self.equal?(o)
121
- self.class == o.class &&
122
- success == o.success &&
123
- error == o.error &&
124
- data == o.data
125
- end
126
-
127
- # @see the `==` method
128
- # @param [Object] Object to be compared
129
- def eql?(o)
130
- self == o
131
- end
132
-
133
- # Calculates hash code according to all attributes.
134
- # @return [Integer] Hash code
135
- def hash
136
- [success, error, data].hash
137
- end
138
-
139
- # Builds the object from hash
140
- # @param [Hash] attributes Model attributes in the form of hash
141
- # @return [Object] Returns the model itself
142
- def self.build_from_hash(attributes)
143
- new.build_from_hash(attributes)
144
- end
145
-
146
- # Builds the object from hash
147
- # @param [Hash] attributes Model attributes in the form of hash
148
- # @return [Object] Returns the model itself
149
- def build_from_hash(attributes)
150
- return nil unless attributes.is_a?(Hash)
151
- self.class.openapi_types.each_pair do |key, type|
152
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
153
- self.send("#{key}=", nil)
154
- elsif type =~ /\AArray<(.*)>/i
155
- # check to ensure the input is an array given that the attribute
156
- # is documented as an array but the input is not
157
- if attributes[self.class.attribute_map[key]].is_a?(Array)
158
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
159
- end
160
- elsif !attributes[self.class.attribute_map[key]].nil?
161
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
162
- end
163
- end
164
-
165
- self
166
- end
167
-
168
- # Deserializes the data based on type
169
- # @param string type Data type
170
- # @param string value Value to be deserialized
171
- # @return [Object] Deserialized data
172
- def _deserialize(type, value)
173
- case type.to_sym
174
- when :Time
175
- Time.parse(value)
176
- when :Date
177
- Date.parse(value)
178
- when :String
179
- value.to_s
180
- when :Integer
181
- value.to_i
182
- when :Float
183
- value.to_f
184
- when :Boolean
185
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
186
- true
187
- else
188
- false
189
- end
190
- when :Object
191
- # generic object (usually a Hash), return directly
192
- value
193
- when /\AArray<(?<inner_type>.+)>\z/
194
- inner_type = Regexp.last_match[:inner_type]
195
- value.map { |v| _deserialize(inner_type, v) }
196
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
197
- k_type = Regexp.last_match[:k_type]
198
- v_type = Regexp.last_match[:v_type]
199
- {}.tap do |hash|
200
- value.each do |k, v|
201
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
202
- end
203
- end
204
- else # model
205
- # models (e.g. Pet) or oneOf
206
- klass = Patch.const_get(type)
207
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
208
- end
209
- end
210
-
211
- # Returns the string representation of the object
212
- # @return [String] String presentation of the object
213
- def to_s
214
- to_hash.to_s
215
- end
216
-
217
- # to_body is an alias to to_hash (backward compatibility)
218
- # @return [Hash] Returns the object in the form of hash
219
- def to_body
220
- to_hash
221
- end
222
-
223
- # Returns the object in the form of hash
224
- # @return [Hash] Returns the object in the form of hash
225
- def to_hash
226
- hash = {}
227
- self.class.attribute_map.each_pair do |attr, param|
228
- value = self.send(attr)
229
- if value.nil?
230
- is_nullable = self.class.openapi_nullable.include?(attr)
231
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
232
- end
233
-
234
- hash[param] = _to_hash(value)
235
- end
236
- hash
237
- end
238
-
239
- # Outputs non-array value in the form of hash
240
- # For object, use to_hash. Otherwise, just return the value
241
- # @param [Object] value Any valid value
242
- # @return [Hash] Returns the value in the form of hash
243
- def _to_hash(value)
244
- if value.is_a?(Array)
245
- value.compact.map { |v| _to_hash(v) }
246
- elsif value.is_a?(Hash)
247
- {}.tap do |hash|
248
- value.each { |k, v| hash[k] = _to_hash(v) }
249
- end
250
- elsif value.respond_to? :to_hash
251
- value.to_hash
252
- else
253
- value
254
- end
255
- end
256
- end
257
- end
@@ -1,82 +0,0 @@
1
- =begin
2
- #Patch API V1
3
-
4
- #The core API used to integrate with Patch's service
5
-
6
- The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
-
16
- # Unit tests for Patch::PreferencesApi
17
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
- # Please update as you see appropriate
19
- describe 'PreferencesApi' do
20
- before do
21
- # run before each test
22
- @api_instance = Patch::PreferencesApi.new
23
- end
24
-
25
- after do
26
- # run after each test
27
- end
28
-
29
- describe 'test an instance of PreferencesApi' do
30
- it 'should create an instance of PreferencesApi' do
31
- expect(@api_instance).to be_instance_of(Patch::PreferencesApi)
32
- end
33
- end
34
-
35
- # unit tests for create_preference
36
- # creates a project preference
37
- # Creates a project preference for the given organization. If you have a &#x60;preference&#x60; in place, all of your orders will be directed to the project the preference points to.
38
- # @param create_preference_request
39
- # @param [Hash] opts the optional parameters
40
- # @return [PreferenceResponse]
41
- describe 'create_preference test' do
42
- it 'should work' do
43
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
- end
45
- end
46
-
47
- # unit tests for delete_preference
48
- # Deletes an organization&#39;s preference for a project
49
- # Deletes the given &#x60;preference&#x60;. Once a preference is deleted, it cannot be undone. If you want to restore your previous preference, create a new one.
50
- # @param id
51
- # @param [Hash] opts the optional parameters
52
- # @return [PreferenceResponse]
53
- describe 'delete_preference test' do
54
- it 'should work' do
55
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
- end
57
- end
58
-
59
- # unit tests for retrieve_preference
60
- # Retrieve the preference
61
- # Retrieve the preference and project of an organization. You can only retrieve preferences associated with your organization.
62
- # @param id
63
- # @param [Hash] opts the optional parameters
64
- # @return [PreferenceResponse]
65
- describe 'retrieve_preference test' 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
-
71
- # unit tests for retrieve_preferences
72
- # Retrieves a list of preferences
73
- # Retrieves a list of preferences and associated projects of an organization. You can only retrieve preferences associated with your organization.
74
- # @param [Hash] opts the optional parameters
75
- # @option opts [Integer] :page
76
- # @return [PreferenceListResponse]
77
- describe 'retrieve_preferences test' do
78
- it 'should work' do
79
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
- end
81
- end
82
- end
@@ -1,5 +0,0 @@
1
- FactoryBot.define do
2
- factory :create_preference_request, class: Patch::CreatePreferenceRequest do
3
- sequence(:project_id) { |n| n }
4
- end
5
- end
@@ -1,8 +0,0 @@
1
- FactoryBot.define do
2
- factory :preference_list_response, class: Patch::PreferenceListResponse do
3
- success { true }
4
- error { {} }
5
- data { {} }
6
- meta { {} }
7
- end
8
- end
@@ -1,7 +0,0 @@
1
- FactoryBot.define do
2
- factory :preference_response, class: Patch::PreferenceResponse do
3
- success { true }
4
- error { {} }
5
- data { {} }
6
- end
7
- end
@@ -1,7 +0,0 @@
1
- FactoryBot.define do
2
- factory :preference, class: Patch::Preference do
3
- sequence(:id) { |n| n }
4
- association :project
5
- allocation_percentage { 1 }
6
- end
7
- end
@@ -1,32 +0,0 @@
1
- RSpec.describe 'Preferences Integration' do
2
- it 'supports create, delete, retrieve and list' do
3
- retrieve_projects_response = Patch::Project.retrieve_projects
4
- expect(retrieve_projects_response.data.length).not_to be_zero
5
- project_id = retrieve_projects_response.data.first.id
6
-
7
- begin
8
- create_preference_response = Patch::Preference.create_preference(project_id: project_id)
9
- preference_id = create_preference_response.data.id
10
- rescue Patch::ApiError => e
11
- preference_id = Patch::Preference.retrieve_preferences().data.first.id
12
- end
13
-
14
- retrieve_preference_response = Patch::Preference.retrieve_preference(preference_id)
15
- expect(retrieve_preference_response.data.id).to eq preference_id
16
-
17
- page_limit = 1
18
- next_page = 1
19
- preferences = []
20
-
21
- while !next_page.nil? && next_page <= page_limit
22
- retrieve_preferences_response = Patch::Preference.retrieve_preferences(page: next_page)
23
- next_page = retrieve_preferences_response.meta.next_page
24
- preferences += retrieve_preferences_response.data
25
- end
26
-
27
- expect(preferences.length).not_to be_zero
28
-
29
- delete_preference_response = Patch::Preference.delete_preference(preference_id)
30
- expect(delete_preference_response.data.id).to eq preference_id
31
- end
32
- end
@@ -1,47 +0,0 @@
1
- =begin
2
- #Patch API V1
3
-
4
- #The core API used to integrate with Patch's service
5
-
6
- The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for Patch::CreatePreferenceRequest
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe 'CreatePreferenceRequest' do
21
- before do
22
- # run before each test
23
- @instance = build(:create_preference_request)
24
- end
25
-
26
- after do
27
- # run after each test
28
- end
29
-
30
- it_behaves_like "a generated class" do
31
- let(:instance) { @instance }
32
- let(:instance_hash) { { project_id: @instance.project_id } }
33
- let(:nullable_properties) { Set.new }
34
- end
35
-
36
- describe 'test an instance of CreatePreferenceRequest' do
37
- it 'should create an instance of CreatePreferenceRequest' do
38
- expect(@instance).to be_instance_of(Patch::CreatePreferenceRequest)
39
- end
40
- end
41
-
42
- describe 'test attribute "project_id"' do
43
- it 'should work' do
44
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
- end
46
- end
47
- end
@@ -1,64 +0,0 @@
1
- =begin
2
- #Patch API V1
3
-
4
- #The core API used to integrate with Patch's service
5
-
6
- The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for Patch::PreferenceListResponse
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe 'PreferenceListResponse' do
21
- before do
22
- # run before each test
23
- @instance = build(:preference_list_response)
24
- end
25
-
26
- after do
27
- # run after each test
28
- end
29
-
30
- it_behaves_like "a generated class" do
31
- let(:instance) { @instance }
32
- let(:instance_hash) { { success: @instance.success, error: @instance.error, data: @instance.data, meta: @instance.meta } }
33
- let(:nullable_properties) { Set.new([:error]) }
34
- end
35
-
36
- describe 'test an instance of PreferenceListResponse' do
37
- it 'should create an instance of PreferenceListResponse' do
38
- expect(@instance).to be_instance_of(Patch::PreferenceListResponse)
39
- end
40
- end
41
- describe 'test attribute "success"' do
42
- it 'should work' do
43
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
- end
45
- end
46
-
47
- describe 'test attribute "error"' do
48
- it 'should work' do
49
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
- end
51
- end
52
-
53
- describe 'test attribute "data"' do
54
- it 'should work' do
55
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
- end
57
- end
58
-
59
- describe 'test attribute "meta"' 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
- end
@@ -1,58 +0,0 @@
1
- =begin
2
- #Patch API V1
3
-
4
- #The core API used to integrate with Patch's service
5
-
6
- The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for Patch::PreferenceResponse
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe 'PreferenceResponse' do
21
- before do
22
- # run before each test
23
- @instance = build(:preference_response)
24
- end
25
-
26
- after do
27
- # run after each test
28
- end
29
-
30
- it_behaves_like "a generated class" do
31
- let(:instance) { @instance }
32
- let(:instance_hash) { { success: @instance.success, error: @instance.error, data: @instance.data } }
33
- let(:nullable_properties) { Set.new([:error]) }
34
- end
35
-
36
- describe 'test an instance of PreferenceResponse' do
37
- it 'should create an instance of PreferenceResponse' do
38
- expect(@instance).to be_instance_of(Patch::PreferenceResponse)
39
- end
40
- end
41
- describe 'test attribute "success"' do
42
- it 'should work' do
43
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
- end
45
- end
46
-
47
- describe 'test attribute "error"' do
48
- it 'should work' do
49
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
- end
51
- end
52
-
53
- describe 'test attribute "data"' do
54
- it 'should work' do
55
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
- end
57
- end
58
- end
@@ -1,58 +0,0 @@
1
- =begin
2
- #Patch API V1
3
-
4
- #The core API used to integrate with Patch's service
5
-
6
- The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for Patch::Preference
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe 'Preference' do
21
- before do
22
- # run before each test
23
- @instance = build(:preference)
24
- end
25
-
26
- after do
27
- # run after each test
28
- end
29
-
30
- it_behaves_like "a generated class" do
31
- let(:instance) { @instance }
32
- let(:instance_hash) { { id: @instance.id, project: @instance.project.to_hash, allocation_percentage: @instance.allocation_percentage } }
33
- let(:nullable_properties) { Set.new }
34
- end
35
-
36
- describe 'test an instance of Preference' do
37
- it 'should create an instance of Preference' do
38
- expect(@instance).to be_instance_of(Patch::Preference)
39
- end
40
- end
41
- describe 'test attribute "id"' do
42
- it 'should work' do
43
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
- end
45
- end
46
-
47
- describe 'test attribute "allocation_percentage"' do
48
- it 'should work' do
49
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
- end
51
- end
52
-
53
- describe 'test attribute "project"' do
54
- it 'should work' do
55
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
- end
57
- end
58
- end