=begin #Dropbox Sign API #Dropbox Sign v3 API The version of the OpenAPI document: 3.0.0 Contact: apisupport@hellosign.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.3.0 =end require 'spec_helper' require 'json_spec' require_relative '../test_utils' describe Dropbox::Sign::EmbeddedApi do context 'EmbeddedApiTest' do api = Dropbox::Sign::EmbeddedApi.new it 'testEmbeddedEditUrl' do template_id = '5de8179668f2033afac48da1868d0093bf133266' request_class = 'EmbeddedEditUrlRequest' request_data = get_fixture_data(request_class)[:default] response_class = 'EmbeddedEditUrlResponse' response_data = get_fixture_data(response_class)[:default] set_expected_response(200, JSON.dump(response_data)) expected = Dropbox::Sign::EmbeddedEditUrlResponse.init(response_data) obj = Dropbox::Sign::EmbeddedEditUrlRequest.init(request_data) result = api.embedded_edit_url(template_id, obj) expect(result.class.to_s).to eq("Dropbox::Sign::#{response_class}") expect(result.to_json).to be_json_eql(JSON.dump(expected)) end it 'testEmbeddedSignUrl' do signature_id = '50e3542f738adfa7ddd4cbd4c00d2a8ab6e4194b' response_class = 'EmbeddedSignUrlResponse' response_data = get_fixture_data(response_class)[:default] set_expected_response(200, JSON.dump(response_data)) expected = Dropbox::Sign::EmbeddedSignUrlResponse.init(response_data) result = api.embedded_sign_url(signature_id) expect(result.class.to_s).to eq("Dropbox::Sign::#{response_class}") expect(result.to_json).to be_json_eql(JSON.dump(expected)) end end end