Sha256: 8ec72a83a5b43d663156495d608cbb213caf8c2910a6327539f12e376eabc7f0

Contents?: true

Size: 1.06 KB

Versions: 33

Compression:

Stored size: 1.06 KB

Contents

require 'spec_helper'

describe HelloSign::Api::UnclaimedDraft do
  describe '#create_unclaimed_draft' do
    context 'send_document' do
      before do
        stub_post('/unclaimed_draft/create', 'unclaimed_draft')
        @unclaimed_draft = HelloSign.create_unclaimed_draft({ :type => 'send_document' })
      end

      it 'should get the correct resource' do
        expect(a_post('/unclaimed_draft/create')).to have_been_made
      end

      it 'should return a UnclaimedDraft' do
        expect(@unclaimed_draft).to be_an HelloSign::Resource::UnclaimedDraft
      end
    end

    context 'request_signature' do
      before do
        stub_post('/unclaimed_draft/create', 'unclaimed_draft')
        @unclaimed_draft = HelloSign.create_unclaimed_draft({ :type => 'request_signature' })
      end

      it 'should get the correct resource' do
        expect(a_post('/unclaimed_draft/create')).to have_been_made
      end

      it 'should return a UnclaimedDraft' do
        expect(@unclaimed_draft).to be_an HelloSign::Resource::UnclaimedDraft
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
hellosign-ruby-sdk-3.4.0 spec/hello_sign/api/unclaimed_draft_spec.rb
hellosign-ruby-sdk-3.3.0 spec/hello_sign/api/unclaimed_draft_spec.rb
hellosign-ruby-sdk-3.2.15 spec/hello_sign/api/unclaimed_draft_spec.rb
hellosign-ruby-sdk-3.2.14 spec/hello_sign/api/unclaimed_draft_spec.rb
hellosign-ruby-sdk-3.2.13 spec/hello_sign/api/unclaimed_draft_spec.rb
hellosign-ruby-sdk-3.2.11 spec/hello_sign/api/unclaimed_draft_spec.rb
hellosign-ruby-sdk-3.2.10 spec/hello_sign/api/unclaimed_draft_spec.rb
hellosign-ruby-sdk-3.2.9 spec/hello_sign/api/unclaimed_draft_spec.rb
hellosign-ruby-sdk-3.2.8 spec/hello_sign/api/unclaimed_draft_spec.rb
hellosign-ruby-sdk-3.2.7 spec/hello_sign/api/unclaimed_draft_spec.rb
hellosign-ruby-sdk-3.2.5 spec/hello_sign/api/unclaimed_draft_spec.rb
hellosign-ruby-sdk-3.2.4 spec/hello_sign/api/unclaimed_draft_spec.rb
hellosign-ruby-sdk-3.2.3 spec/hello_sign/api/unclaimed_draft_spec.rb
hellosign-ruby-sdk-3.2.2 spec/hello_sign/api/unclaimed_draft_spec.rb
hellosign-ruby-sdk-3.2.1 spec/hello_sign/api/unclaimed_draft_spec.rb
hellosign-ruby-sdk-3.2.0 spec/hello_sign/api/unclaimed_draft_spec.rb
hellosign-ruby-sdk-3.1.0 spec/hello_sign/api/unclaimed_draft_spec.rb
hellosign-ruby-sdk-3.0.22 spec/hello_sign/api/unclaimed_draft_spec.rb
hellosign-ruby-sdk-3.0.21 spec/hello_sign/api/unclaimed_draft_spec.rb
hellosign-ruby-sdk-3.0.20 spec/hello_sign/api/unclaimed_draft_spec.rb