Sha256: 2d11967b2641a10ad5c26af4339abf1dc4a9c024e34968f213e0ba24f08cbf7b

Contents?: true

Size: 538 Bytes

Versions: 1

Compression:

Stored size: 538 Bytes

Contents

require File.dirname(__FILE__) + "/spec_helper"

describe "Transporter creating transactions" do
  
  it "should raise an exception when transport_type is not one of :json, :rest or :soap" do
    lambda {
      tr = ::EWS::Transaction::Transporter.new
      tr.submit(basic_new_transaction, :banana)
    }.should raise_error
  end
  
  it "should not throw errors" do
    txn = basic_new_transaction

    lambda {
      tr = ::EWS::Transaction::Transporter.new
      tr.submit(txn)
    }.should_not raise_error(RuntimeError)
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
exact4r-0.5.2 ./spec/transporter_spec.rb