spec/integration/projects_spec.rb in patch_ruby-1.20.0 vs spec/integration/projects_spec.rb in patch_ruby-1.21.0
- old
+ new
@@ -61,8 +61,17 @@
expect(parent_type).to be_an_instance_of(Patch::ParentTechnologyType)
expect(parent_type.name).to be_an_instance_of(String)
expect(parent_type.slug).to be_an_instance_of(String)
expect(project.highlights).to be_an_instance_of(Array)
+
+ inventory = project.inventory
+ expect(inventory).to be_an_instance_of(Array)
+ expect(inventory[0]).to be_an_instance_of(Patch::Inventory)
+ expect(inventory[0].vintage_year).to be_an_instance_of(Integer)
+ expect(inventory[0].amount_available).to be_an_instance_of(Integer)
+ expect(inventory[0].price).to be_an_instance_of(Integer)
+ expect(inventory[0].currency).to be_an_instance_of(String)
+ expect(inventory[0].unit).to be_an_instance_of(String)
end
end
end