Sha256: 1d57b9e42dce49a9010bde7f5660f693d02156020d124dd479023c75134a8beb
Contents?: true
Size: 518 Bytes
Versions: 8
Compression:
Stored size: 518 Bytes
Contents
describe Ppl::Format::Contact::Urls do before(:each) do @format = Ppl::Format::Contact::Urls.new @contact = Ppl::Entity::Contact.new end describe "#process" do it "should return an empty string if the contact lacks a URL" do @format.process(Ppl::Entity::Contact.new).should eq "" end it "should return the contact's URL if one is set" do @contact.urls.push "http://example.org/~jdoe" @format.process(@contact).should eq "http://example.org/~jdoe" end end end
Version data entries
8 entries across 8 versions & 1 rubygems