Sha256: 280d4f256816df36bb7db44de86cd0d387680985e49876841763b9f56f6d1eb0
Contents?: true
Size: 553 Bytes
Versions: 15
Compression:
Stored size: 553 Bytes
Contents
describe Ppl::Format::Contact::EmailAddresses do before(:each) do @format = Ppl::Format::Contact::EmailAddresses.new @contact = Ppl::Entity::Contact.new end describe "#process" do it "should return an empty string if the contact lacks an email address" do @format.process(Ppl::Entity::Contact.new).should eq "" end it "should return the contact's email address if it is set" do @contact.email_addresses.push "jdoe@example.org" @format.process(@contact).should eq "jdoe@example.org" end end end
Version data entries
15 entries across 15 versions & 1 rubygems