Sha256: c956c8743d2898727c378333f0d4baff740047828d98e0bf2526d868dad8c52a
Contents?: true
Size: 884 Bytes
Versions: 2
Compression:
Stored size: 884 Bytes
Contents
# frozen_string_literal: true require 'spec_helpers/client' require 'rest/api_request' RSpec.describe FinApps::REST::SignedDocumentsDownloads do include SpecHelpers::Client let(:api_client) { client } let(:document) { described_class.new(api_client) } describe '#show' do context 'when missing parameters' do subject { document.show(:consumer_id, nil) } it 'raises an error when missing consumer id' do expect { subject }.to raise_error(FinAppsCore::MissingArgumentsError) end it 'raises an error when missing signature request id' do expect { subject }.to raise_error(FinAppsCore::MissingArgumentsError) end end subject(:show) do document.show( :consumer_id, :signature_request_id ) end it_behaves_like 'an API request' it_behaves_like 'a successful request' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
finapps-5.0.34 | spec/rest/signed_documents_downloads_spec.rb |
finapps-5.0.33 | spec/rest/signed_documents_downloads_spec.rb |