Sha256: 403427818ce64473a6a2d30e0c0ebdf236c6d488bccf7592ef4b522f61193b08
Contents?: true
Size: 870 Bytes
Versions: 2
Compression:
Stored size: 870 Bytes
Contents
describe Ppl::Format::AddressBook::Urls do before(:each) do @format = Ppl::Format::AddressBook::Urls.new @address_book = Ppl::Entity::AddressBook.new @contact = Ppl::Entity::Contact.new @table = double(Ppl::Format::Table) @contact.id = "test" @format.table = @table @address_book.contacts.push(@contact) end describe "#process" do it "should at least show the contact's id" do @table.should_receive(:add_row).with({ :id => "test:", :urls => nil, }) @format.process(@address_book) end it "should show a URL if it's available" do @contact.urls.push "http://example.org/~jdoe" @table.should_receive(:add_row).with({ :id => "test:", :urls => "http://example.org/~jdoe", }) @format.process(@address_book) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ppl-1.10.0 | spec/ppl/format/address_book/urls_spec.rb |
ppl-1.9.0 | spec/ppl/format/address_book/urls_spec.rb |