Sha256: 3f8c149ead1e5a7279ccce71e4300fc51677f38c8318aac202d05b58cf702ade

Contents?: true

Size: 587 Bytes

Versions: 4

Compression:

Stored size: 587 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 a UnclaimedDraft" do
      expect(@embedded).to be_an HelloSign::Resource::Embedded
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hellosign-ruby-sdk-3.0.3 spec/hello_sign/api/embedded_spec.rb
hellosign-ruby-sdk-3.0.2 spec/hello_sign/api/embedded_spec.rb
hellosign-ruby-sdk-3.0.1 spec/hello_sign/api/embedded_spec.rb
hellosign-ruby-sdk-3.0.0 spec/hello_sign/api/embedded_spec.rb