2024-01-24 11:02:53 +08:00

28 lines
650 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'
require 'base64'
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