Sha256: 51d0b84f5245037050207b0bdd415ce4b5930d8c531e66fe0950e247bfd71f00

Contents?: true

Size: 545 Bytes

Versions: 4

Compression:

Stored size: 545 Bytes

Contents

# frozen_string_literal: true

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

RSpec.describe FinApps::REST::EsignTemplates do
  include SpecHelpers::Client
  subject(:templates) { FinApps::REST::EsignTemplates.new(client).list }
  let(:results) { templates[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(:template_id)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
finapps-5.0.32 spec/rest/esign_templates_spec.rb
finapps-5.0.31 spec/rest/esign_templates_spec.rb
finapps-5.0.30 spec/rest/esign_templates_spec.rb
finapps-5.0.29 spec/rest/esign_templates_spec.rb