Sha256: aa94539087609012b80b0154eda3cbabd228326245cd8e96914365d708e797c4
Contents?: true
Size: 526 Bytes
Versions: 19
Compression:
Stored size: 526 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_number = "0123456789" @format.process(@contact).should eq "0123456789" end end end
Version data entries
19 entries across 19 versions & 1 rubygems