Sha256: ff5e93ac9b9f0cc45c8fcf57ff2b14276fb2dc3cfe772ab0dc40a3253554640e

Contents?: true

Size: 759 Bytes

Versions: 4

Compression:

Stored size: 759 Bytes

Contents

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

describe Pardot::Client do
  
  def create_client
    @client = Pardot::Client.new "user@test.com", "foo", "bar"
  end
  
  describe "client" do
    after do
      @client.email.should == "user@test.com"
      @client.password.should == "password"
      @client.user_key.should == "user_key"
      @client.format.should == "simple"
    end

    it "should set variables without version" do
      @client = Pardot::Client.new "user@test.com", "password", "user_key"
      @client.version.should == 3
    end
    
    it "should set variables with version" do
      @client = Pardot::Client.new "user@test.com", "password", "user_key", 4
      @client.version.should == 4
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-pardot-1.3.1 spec/pardot/client_spec.rb
ruby-pardot-1.3.0 spec/pardot/client_spec.rb
ruby-pardot-1.2.0 spec/pardot/client_spec.rb
ruby-pardot-1.1.0 spec/pardot/client_spec.rb