Sha256: 2582f680c2dd70a08fbfe0b4b15c1ea48c0f0a6fb8a1901f8baa1a2b04ee9ce7

Contents?: true

Size: 537 Bytes

Versions: 23

Compression:

Stored size: 537 Bytes

Contents

# frozen_string_literal: true

require 'spec_helpers/client'
require 'rest/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

23 entries across 23 versions & 1 rubygems

Version Path
finapps-6.4.3 spec/rest/documents_upload_types_spec.rb
finapps-6.4.2 spec/rest/documents_upload_types_spec.rb
finapps-6.4.1 spec/rest/documents_upload_types_spec.rb
finapps-6.4.0 spec/rest/documents_upload_types_spec.rb
finapps-6.3.1 spec/rest/documents_upload_types_spec.rb
finapps-6.3.0 spec/rest/documents_upload_types_spec.rb
finapps-6.2.0 spec/rest/documents_upload_types_spec.rb
finapps-6.1.0 spec/rest/documents_upload_types_spec.rb
finapps-6.0.0 spec/rest/documents_upload_types_spec.rb
finapps-5.4.1 spec/rest/documents_upload_types_spec.rb
finapps-5.4.0 spec/rest/documents_upload_types_spec.rb
finapps-5.3.0 spec/rest/documents_upload_types_spec.rb
finapps-5.2.1 spec/rest/documents_upload_types_spec.rb
finapps-5.2.0 spec/rest/documents_upload_types_spec.rb
finapps-5.1.0 spec/rest/documents_upload_types_spec.rb
finapps-5.0.47 spec/rest/documents_upload_types_spec.rb
finapps-5.0.46 spec/rest/documents_upload_types_spec.rb
finapps-5.0.45 spec/rest/documents_upload_types_spec.rb
finapps-5.0.44 spec/rest/documents_upload_types_spec.rb
finapps-5.0.43 spec/rest/documents_upload_types_spec.rb