Sha256: 3516b366f309d8fb4beb1fb6edb6793b1cf8510f58f29ec54d77af85a3673a84

Contents?: true

Size: 769 Bytes

Versions: 4

Compression:

Stored size: 769 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe "DocuSign" do
  describe "login" do
    it "return a new savon client" do
      client = DocuSign::Client.new(DOCU_SIGN_CONFIG)
      client.client.should be_an_instance_of(Savon::Client)
    end
  end

  context "with a client objects" do
    use_vcr_cassette :ping

    before do
      @docusign = DocuSign::Client.new(DOCU_SIGN_CONFIG)
    end

    it "should successfully ping the service" do
      response = @docusign.client.request :ping
      response.should be_an_instance_of(Savon::SOAP::Response)
    end

    it "should support method calls through method_missing" do
      response = @docusign.ping
      response.should be_an_instance_of(Savon::SOAP::Response)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
docu_sign-0.0.6 spec/docu_sign_spec.rb
docu_sign-0.0.5 spec/docu_sign_spec.rb
docu_sign-0.0.4 spec/docu_sign_spec.rb
docu_sign-0.0.3 spec/docu_sign_spec.rb