Skip to content

Commit e11605b

Browse files
committed
Add model specs
1 parent 2298688 commit e11605b

18 files changed

+109
-0
lines changed

spec/models/allocation_spec.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
expect(@instance).to be_instance_of(Patch::Allocation)
3333
end
3434
end
35+
3536
describe 'test attribute "id"' do
3637
it 'should work' do
3738
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -49,4 +50,10 @@
4950
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
5051
end
5152
end
53+
54+
describe '.openapi_nullable' do
55+
it 'returns a set with nullable properties' do
56+
expect(Patch::Allocation.openapi_nullable).to be_empty
57+
end
58+
end
5259
end

spec/models/create_mass_estimate_request_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,10 @@
3737
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
3838
end
3939
end
40+
41+
describe '.openapi_nullable' do
42+
it 'returns a set with nullable properties' do
43+
expect(Patch::CreateMassEstimateRequest.openapi_nullable).to be_empty
44+
end
45+
end
4046
end

spec/models/create_order_request_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,10 @@
3737
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
3838
end
3939
end
40+
41+
describe '.openapi_nullable' do
42+
it 'returns a set with nullable properties' do
43+
expect(Patch::CreateOrderRequest.openapi_nullable).to be_empty
44+
end
45+
end
4046
end

spec/models/create_preference_request_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,10 @@
3737
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
3838
end
3939
end
40+
41+
describe '.openapi_nullable' do
42+
it 'returns a set with nullable properties' do
43+
expect(Patch::CreatePreferenceRequest.openapi_nullable).to be_empty
44+
end
45+
end
4046
end

spec/models/error_response_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,10 @@
4949
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
5050
end
5151
end
52+
53+
describe '.openapi_nullable' do
54+
it 'returns a set with nullable properties' do
55+
expect(Patch::ErrorResponse.openapi_nullable).to contain_exactly("data")
56+
end
57+
end
5258
end

spec/models/estimate_list_response_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,10 @@
5555
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
5656
end
5757
end
58+
59+
describe '.openapi_nullable' do
60+
it 'returns a set with nullable properties' do
61+
expect(Patch::EstimateListResponse.openapi_nullable).to contain_exactly("error")
62+
end
63+
end
5864
end

spec/models/estimate_response_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,10 @@
4949
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
5050
end
5151
end
52+
53+
describe '.openapi_nullable' do
54+
it 'returns a set with nullable properties' do
55+
expect(Patch::EstimateResponse.openapi_nullable).to contain_exactly("error")
56+
end
57+
end
5258
end

spec/models/estimate_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,10 @@
5555
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
5656
end
5757
end
58+
59+
describe '.openapi_nullable' do
60+
it 'returns a set with nullable properties' do
61+
expect(Patch::Estimate.openapi_nullable).to contain_exactly("order")
62+
end
63+
end
5864
end

spec/models/meta_index_object_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,10 @@
4343
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
4444
end
4545
end
46+
47+
describe '.openapi_nullable' do
48+
it 'returns a set with nullable properties' do
49+
expect(Patch::MetaIndexObject.openapi_nullable).to contain_exactly("prev_page", "next_page")
50+
end
51+
end
4652
end

spec/models/order_list_response_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,10 @@
5555
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
5656
end
5757
end
58+
59+
describe '.openapi_nullable' do
60+
it 'returns a set with nullable properties' do
61+
expect(Patch::OrderListResponse.openapi_nullable).to contain_exactly("error")
62+
end
63+
end
5864
end

spec/models/order_response_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,10 @@
4949
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
5050
end
5151
end
52+
53+
describe '.openapi_nullable' do
54+
it 'returns a set with nullable properties' do
55+
expect(Patch::OrderResponse.openapi_nullable).to contain_exactly("error")
56+
end
57+
end
5258
end

spec/models/order_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,10 @@
8181
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
8282
end
8383
end
84+
85+
describe '.openapi_nullable' do
86+
it 'returns a set with nullable properties' do
87+
expect(Patch::Order.openapi_nullable).to contain_exactly("price_cents_usd", "patch_fee_cents_usd")
88+
end
89+
end
8490
end

spec/models/preference_list_response_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,10 @@
5555
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
5656
end
5757
end
58+
59+
describe '.openapi_nullable' do
60+
it 'returns a set with nullable properties' do
61+
expect(Patch::PreferenceListResponse.openapi_nullable).to contain_exactly("error")
62+
end
63+
end
5864
end

spec/models/preference_response_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,10 @@
4949
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
5050
end
5151
end
52+
53+
describe '.openapi_nullable' do
54+
it 'returns a set with nullable properties' do
55+
expect(Patch::PreferenceResponse.openapi_nullable).to contain_exactly("error")
56+
end
57+
end
5258
end

spec/models/preference_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,10 @@
4949
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
5050
end
5151
end
52+
53+
describe '.openapi_nullable' do
54+
it 'returns a set with nullable properties' do
55+
expect(Patch::Preference.openapi_nullable).to be_empty
56+
end
57+
end
5258
end

spec/models/project_list_response_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,10 @@
5555
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
5656
end
5757
end
58+
59+
describe '.openapi_nullable' do
60+
it 'returns a set with nullable properties' do
61+
expect(Patch::ProjectListResponse.openapi_nullable).to contain_exactly("error")
62+
end
63+
end
5864
end

spec/models/project_response_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,10 @@
4949
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
5050
end
5151
end
52+
53+
describe '.openapi_nullable' do
54+
it 'returns a set with nullable properties' do
55+
expect(Patch::ProjectResponse.openapi_nullable).to contain_exactly("error")
56+
end
57+
end
5258
end

spec/models/project_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,10 @@
8585
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
8686
end
8787
end
88+
89+
describe '.openapi_nullable' do
90+
it 'returns a set with nullable properties' do
91+
expect(Patch::Project.openapi_nullable).to contain_exactly("photos", "standard")
92+
end
93+
end
8894
end

0 commit comments

Comments
 (0)