Sha256: afa0df6d4de140292a99778f3d09a09d68c370b7911c4b480f36e1f3f673f043

Contents?: true

Size: 639 Bytes

Versions: 11

Compression:

Stored size: 639 Bytes

Contents

require 'spec_helper'

describe "client" do

  it "can be configured" do
    client = Zendesk2::Client.new(:url => "https://myzen.zendesk.com",
                                  :username => "person@place.com",
                                  :password => "wickedsecure",
                                  :token => "12345678901234567890",
                                  :jwt_token => "234823472398472938423234")
    client.url.should eq "https://myzen.zendesk.com"
    client.username.should eq "person@place.com"
    client.token.should eq "12345678901234567890"
    client.jwt_token.should eq "234823472398472938423234"
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
zendesk2-0.4.4 spec/config_spec.rb
zendesk2-0.4.3 spec/config_spec.rb
zendesk2-0.4.2 spec/config_spec.rb
zendesk2-0.4.1 spec/config_spec.rb
zendesk2-0.4.0 spec/config_spec.rb
zendesk2-0.3.2 spec/config_spec.rb
zendesk2-0.3.1 spec/config_spec.rb
zendesk2-0.3.0 spec/config_spec.rb
zendesk2-0.2.7 spec/config_spec.rb
zendesk2-0.2.6 spec/config_spec.rb
zendesk2-0.2.5 spec/config_spec.rb