Sha256: b424bd0f5d4417f23808856dbb8c31f48089b69ab0c35daa43815c37f69b9636

Contents?: true

Size: 716 Bytes

Versions: 10

Compression:

Stored size: 716 Bytes

Contents

require File.expand_path("../../spec_helper", __FILE__)

module Rews
  describe Client do
    it "should create new DistinguishedFolderIds for arbitrary mailboxes" do
      client = Client.new("https://foo/EWS/Exchange.asmx", :ntlm, "EXCHDOM\\foo", "password")

      mock(Folder::DistinguishedFolderId).new(client, 'inbox', 'foo@bar.com')

      client.distinguished_folder_id('inbox', 'foo@bar.com')
    end

    it "should create new DistinguishedFolderIds for the default mailbox" do
      client = Client.new("https://foo/EWS/Exchange.asmx", :ntlm, "EXCHDOM\\foo", "password")

      mock(Folder::DistinguishedFolderId).new(client, 'inbox', nil)

      client.distinguished_folder_id('inbox')
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rews-0.2.12 spec/rews/client_spec.rb
rews-0.2.11 spec/rews/client_spec.rb
rews-0.2.10 spec/rews/client_spec.rb
rews-0.2.9 spec/rews/client_spec.rb
rews-0.2.7 spec/rews/client_spec.rb
rews-0.2.6 spec/rews/client_spec.rb
rews-0.2.5 spec/rews/client_spec.rb
rews-0.2.4 spec/rews/client_spec.rb
rews-0.2.3 spec/rews/client_spec.rb
rews-0.2.2 spec/rews/client_spec.rb