Sha256: ae955142e318def266f046d890a08edfa279354d075418226e111cf91f75e2e4
Contents?: true
Size: 896 Bytes
Versions: 1
Compression:
Stored size: 896 Bytes
Contents
require "spec_helper" if highrise_env_available? 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 else describe HighriseMapper::Person, "#save_to_highrise" describe HighriseMapper::Person, "#delete_from_highrise" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
highrise_mapper-0.0.3 | spec/person_spec.rb |