forked from loafle/openapi-generator-original
add base object
This commit is contained in:
@@ -49,7 +49,10 @@ def prepare_pet
|
||||
# remove the pet
|
||||
PetApi.delete_pet(10002)
|
||||
# recreate the pet
|
||||
pet = Pet.new('id' => 10002, 'name' => "RUBY UNIT TESTING")
|
||||
category = Category.new('id' => 20002, 'name' => 'category test')
|
||||
tag = Tag.new('id' => 30002, 'name' => 'tag test')
|
||||
pet = Pet.new('id' => 10002, 'name' => "RUBY UNIT TESTING", 'photo_urls' => 'photo url',
|
||||
'category' => category, 'tags' => [tag], 'status' => 'pending')
|
||||
PetApi.add_pet(:body => pet)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user