Sha256: 9dbd0b8b1519d6513711a895a094033077fbfb95a14e20bc376a34182dcbf978

Contents?: true

Size: 596 Bytes

Versions: 8

Compression:

Stored size: 596 Bytes

Contents

require 'spec_helper'

describe TresDelta::Client do
  let(:wsdl) { "http://example.com" }

  let(:client) { TresDelta::Client }
  let(:config) { TresDelta::Config.config }

  describe "#client_credentials" do
    it "uses the credentials passed into it" do
      client.client_credentials.should == {
        "ClientCode" => config["client_code"],
        "Password" => config["password"],
        "UserName" => config["user_name"]
      }
    end
  end

  describe "#client" do
    it "returns a Savon client for the WSDL" do
      client.client.class.should == Savon::Client
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tres_delta-0.1.4.3 spec/tres_delta/client_spec.rb
tres_delta-0.1.4.2 spec/tres_delta/client_spec.rb
tres_delta-0.1.4.1 spec/tres_delta/client_spec.rb
tres_delta-0.1.4 spec/tres_delta/client_spec.rb
tres_delta-0.1.3 spec/tres_delta/client_spec.rb
tres_delta-0.1.2 spec/tres_delta/client_spec.rb
tres_delta-0.1.1 spec/tres_delta/client_spec.rb
tres_delta-0.1.0 spec/tres_delta/client_spec.rb