Sha256: 5806c5b8f8f512c9acbf8fd9f722395406dc34852f9537512b3033dfc5b30947

Contents?: true

Size: 707 Bytes

Versions: 1

Compression:

Stored size: 707 Bytes

Contents

require "spec_helper"

describe HighriseMapper::Person, "#save_to_highrise" do
  it "persists the Highrise::Person successfully" do
    HighriseMapper.config('templates')
    contact = Contact.new
    begin
      result = contact.save_to_highrise
      result.should be_a_kind_of(Fixnum)
    ensure
      Highrise::Person.find(result).destroy
    end
  end
end

describe HighriseMapper::Person, "#delete_from_highrise" do
  it "deletes the Highrise::Person successfully" do
    HighriseMapper.config('templates')
    contact = Contact.new
    highrise_person_id = contact.save_to_highrise
    result = contact.delete_from_highrise(highrise_person_id)
    result.should be_a_kind_of(Net::HTTPOK)
  end
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
highrise_mapper-0.0.2 spec/person_spec.rb