William Cheng 10da7a3c5a
[Ruby] add file download tests (#17362)
* add new ruby echo api clients

* add tests for ruby faraday file download

* add file download test to ruby Typhoeus

* add ruby workflow, add tests for ruby httpx

* update

* fix
2023-12-09 22:05:27 +08:00

27 lines
633 B
Ruby

=begin
#Echo Server API
#Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.2.0-SNAPSHOT
=end
require 'spec_helper'
describe "Body API tests" do
describe 'the test_binary_gif method' do
let(:body_api_instance) { OpenapiClient::BodyApi.new }
it 'can return file response' do
gif_base64 = "R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\n"
response = body_api_instance.test_binary_gif()
expect(Base64.encode64(File.read(response.path))).to eq(gif_base64)
end
end
end