update ruby test case

This commit is contained in:
wing328
2016-04-13 22:20:38 +08:00
parent d19ed8a89b
commit 8f70230906
48 changed files with 327 additions and 1021 deletions

View File

@@ -49,7 +49,7 @@ def prepare_pet(pet_api)
tag = Petstore::Tag.new('id' => 30002, 'name' => 'tag test')
pet = Petstore::Pet.new('id' => pet_id, 'name' => "RUBY UNIT TESTING", 'photo_urls' => 'photo url',
'category' => category, 'tags' => [tag], 'status' => 'pending')
pet_api.add_pet(:'body'=> pet)
pet_api.add_pet(pet)
return pet_id
end
@@ -62,7 +62,7 @@ def prepare_store(store_api)
"shipDate" => "2015-04-06T23:42:01.678Z",
"status" => "placed",
"complete" => false)
store_api.place_order(:body => order)
store_api.place_order(order)
return order_id
end