Sha256: ea5c2d5c2b803b1fd2f7e48ccc0752e3e5177524281b789c6d26e9ea476389e1

Contents?: true

Size: 688 Bytes

Versions: 16

Compression:

Stored size: 688 Bytes

Contents

require 'spec_helper'

describe HelloSign::Api::Embedded do
  describe '#get_embedded_sign_url' do
    let(:signature_id) { '50e3542f738adfa7ddd4cbd4c00d2a8ab6e4194b' }
    before do
      stub_get("/embedded/sign_url/#{signature_id}", 'embedded')
      @embedded = HelloSign.get_embedded_sign_url :signature_id => signature_id
    end

    it 'should get the correct resource' do
      expect(a_get("/embedded/sign_url/#{signature_id}")).to have_been_made
    end

    it 'should return response headers' do
      expect(@embedded.headers).to_not be_nil
    end

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

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
hellosign-api-1.0.7 spec/hello_sign/api/embedded_spec.rb
hellosign-api-1.0.6 spec/hello_sign/api/embedded_spec.rb
hellosign-api-1.0.5 spec/hello_sign/api/embedded_spec.rb
hellosign-api-1.0.4 spec/hello_sign/api/embedded_spec.rb
hellosign-api-1.0.3 spec/hello_sign/api/embedded_spec.rb
hellosign-api-1.0.2 spec/hello_sign/api/embedded_spec.rb
hellosign-api-1.0.1 spec/hello_sign/api/embedded_spec.rb
hellosign-api-1.0.0 spec/hello_sign/api/embedded_spec.rb
hellosign-ruby-sdk-3.7.7 spec/hello_sign/api/embedded_spec.rb
hellosign-ruby-sdk-3.7.6 spec/hello_sign/api/embedded_spec.rb
hellosign-ruby-sdk-3.7.5 spec/hello_sign/api/embedded_spec.rb
hellosign-ruby-sdk-3.7.4 spec/hello_sign/api/embedded_spec.rb
hellosign-ruby-sdk-3.7.3 spec/hello_sign/api/embedded_spec.rb
hellosign-ruby-sdk-3.7.2 spec/hello_sign/api/embedded_spec.rb
hellosign-ruby-sdk-3.7.1 spec/hello_sign/api/embedded_spec.rb
hellosign-ruby-sdk-3.7.0 spec/hello_sign/api/embedded_spec.rb