From 7c60e2097f887f9d7cbb95b015b3b1c4d301eeb3 Mon Sep 17 00:00:00 2001 From: xhh Date: Wed, 2 Sep 2015 12:00:27 +0800 Subject: [PATCH] Update API client initialization in Ruby test --- samples/client/petstore/ruby/spec/spec_helper.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/samples/client/petstore/ruby/spec/spec_helper.rb b/samples/client/petstore/ruby/spec/spec_helper.rb index f8e5992a342..b8ba0f73975 100644 --- a/samples/client/petstore/ruby/spec/spec_helper.rb +++ b/samples/client/petstore/ruby/spec/spec_helper.rb @@ -36,11 +36,7 @@ end # help #end -API_CLIENT = Petstore::ApiClient.new do |config| - config.api_key['api_key'] = 'special-key' - config.host = 'petstore.swagger.io' - config.base_path = '/v2' -end +API_CLIENT = Petstore::ApiClient.new # always delete and then re-create the pet object with 10002 def prepare_pet(pet_api)