Sha256: 9c8a3edb4308083c2064a7f6eeaf42e3a0848cb2ae90031ca50e3f1fa29d1332

Contents?: true

Size: 545 Bytes

Versions: 16

Compression:

Stored size: 545 Bytes

Contents

# frozen_string_literal: true

require 'spec_helpers/client'
require 'spec_helpers/api_request'

RSpec.describe FinApps::REST::DocumentsUploadTypes do
  include SpecHelpers::Client
  subject(:upload_types) { described_class.new(client).list }

  let(:results) { upload_types[0] }

  describe '#list' do
    context 'when called' do
      it_behaves_like 'an API request'
      it_behaves_like 'a successful request'
      it('performs a get and returns the response') do
        expect(results[0]).to have_key(:type)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
finapps-6.13.1 spec/rest/documents_upload_types_spec.rb
finapps-6.13.0 spec/rest/documents_upload_types_spec.rb
finapps-6.12.0 spec/rest/documents_upload_types_spec.rb
finapps-6.11.0 spec/rest/documents_upload_types_spec.rb
finapps-6.10.2 spec/rest/documents_upload_types_spec.rb
finapps-6.10.1 spec/rest/documents_upload_types_spec.rb
finapps-6.10.0 spec/rest/documents_upload_types_spec.rb
finapps-6.9.2 spec/rest/documents_upload_types_spec.rb
finapps-6.9.1 spec/rest/documents_upload_types_spec.rb
finapps-6.9.0 spec/rest/documents_upload_types_spec.rb
finapps-6.8.0 spec/rest/documents_upload_types_spec.rb
finapps-6.7.1 spec/rest/documents_upload_types_spec.rb
finapps-6.7.0 spec/rest/documents_upload_types_spec.rb
finapps-6.6.1 spec/rest/documents_upload_types_spec.rb
finapps-6.6.0 spec/rest/documents_upload_types_spec.rb
finapps-6.5.0 spec/rest/documents_upload_types_spec.rb