samples/client/petstore/ruby/spec/petstore_helper.rb
# create a random order, return its id
create a random order, return its id
create a random order return its id
def prepare_store(store_api)
  order_id = 5
  order = Petstore::Order.new("id" => order_id,
          "pet_id" => 123,
          "quantity" => 789,
          "ship_date" => "2015-04-06T23:42:01.678Z",
          "status" => "placed",
          "complete" => false)
  store_api.place_order(order)
  order_id
end
def prepare_store ( store_api ) order_id = 5 order = Petstore :: Order . new ( "id" => order_id , "pet_id" => 123 , "quantity" => 789 , "ship_date" => "2015-04-06T23:42:01.678Z" , "status" => "placed" , "complete" => false ) store_api . place_order ( order ) order_id end
create a random order, return its id
create a random order return its id
store_api
<not_specific>