Skip to content

Commit

Permalink
test: update tests to 2.0.20
Browse files Browse the repository at this point in the history
  • Loading branch information
emajo authored Mar 4, 2024
2 parents 35598c2 + 077c43f commit 514cac2
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 11 deletions.
11 changes: 6 additions & 5 deletions spec/models/company_plan_usage_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,25 @@
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
describe FattureInCloud_Ruby_Sdk::CompanyPlanUsage do
let(:instance) { FattureInCloud_Ruby_Sdk::CompanyPlanUsage.new }
instance = FattureInCloud_Ruby_Sdk::CompanyPlanUsage.new
instance.limit = 5
instance.usage = 7

describe 'test an instance of CompanyPlanUsage' do
it 'should create an instance of CompanyPlanUsage' do
# uncomment below to test the instance creation
# expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::CompanyPlanUsage)
expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::CompanyPlanUsage)
end
end

describe 'test attribute "limit"' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
expect(instance.limit).to be_a_kind_of(Numeric)
end
end

describe 'test attribute "usage"' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
expect(instance.usage).to be_a_kind_of(Numeric)
end
end

Expand Down
14 changes: 14 additions & 0 deletions spec/models/company_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
instance.access_token = "4ff5f0fe5abcd1d7157fa13ca72ab62b6183db0667a576a0e19164801c18c4f7362a848fa32dbb8c3a3f94c34f3df95"
instance.connection_id = 94566
instance.access_token = "ergaegwergq53wh65je5j"
instance.fic_license_expire = "2024-10-10"
instance.fic_plan = "standard"
instance.controlled_companies = [
{
id: 12246,
Expand Down Expand Up @@ -94,4 +96,16 @@
end
end

describe 'test attribute "fic_license_expire"' do
it 'should work' do
expect(instance.fic_license_expire).to be_a_kind_of(String)
end
end

describe 'test attribute "fic_plan"' do
it 'should work' do
expect(instance.fic_plan).to be_a_kind_of(String)
end
end

end
3 changes: 1 addition & 2 deletions spec/models/fatture_in_cloud_plan_type_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@

describe 'test an instance of FattureInCloudPlanType' do
it 'should create an instance of FattureInCloudPlanType' do
# uncomment below to test the instance creation
# expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::FattureInCloudPlanType)
expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::FattureInCloudPlanType)
end
end

Expand Down
11 changes: 7 additions & 4 deletions spec/models/get_company_plan_usage_response_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
describe FattureInCloud_Ruby_Sdk::GetCompanyPlanUsageResponse do
let(:instance) { FattureInCloud_Ruby_Sdk::GetCompanyPlanUsageResponse.new }
instance = FattureInCloud_Ruby_Sdk::GetCompanyPlanUsageResponse.new
instance.data = {
limit: 5,
usage: 7
}

describe 'test an instance of GetCompanyPlanUsageResponse' do
it 'should create an instance of GetCompanyPlanUsageResponse' do
# uncomment below to test the instance creation
# expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::GetCompanyPlanUsageResponse)
expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::GetCompanyPlanUsageResponse)
end
end

describe 'test attribute "data"' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
expect(instance.data).to be_a_kind_of(Object)
end
end

Expand Down

0 comments on commit 514cac2

Please sign in to comment.