forked from loafle/openapi-generator-original
* 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
27 lines
633 B
Ruby
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
|