Sha256: b49a70db35cac14f9a71c9e992c95879adc12e1c864bc242110200859b34dd7a
Contents?: true
Size: 484 Bytes
Versions: 25
Compression:
Stored size: 484 Bytes
Contents
describe Ppl::Format::Contact::Name do before(:each) do @format = Ppl::Format::Contact::Name.new @contact = Ppl::Entity::Contact.new end describe "#process" do it "should return an empty string if the contact lacks a name" do @format.process(Ppl::Entity::Contact.new).should eq "" end it "should return the contact's name if it is set" do @contact.name = "John Doe" @format.process(@contact).should eq "John Doe" end end end
Version data entries
25 entries across 25 versions & 1 rubygems