Sha256: eaa34341aa622ac27292ad3a863a515f7ab094107488a3a77e76b8c49916aeb0
Contents?: true
Size: 531 Bytes
Versions: 6
Compression:
Stored size: 531 Bytes
Contents
describe Ppl::Format::Contact::PhoneNumber do before(:each) do @format = Ppl::Format::Contact::PhoneNumber.new @contact = Ppl::Entity::Contact.new end describe "#process" do it "should return an empty string if the contact lacks a phone number" do @format.process(Ppl::Entity::Contact.new).should eq "" end it "should return the contact's phone number if it is set" do @contact.phone_numbers.push("0123456789") @format.process(@contact).should eq "0123456789" end end end
Version data entries
6 entries across 6 versions & 1 rubygems