Sha256: 997c17a8354a3183562326f946c65e9421fd5b47e8fa1db1140cf4925c9d7d97
Contents?: true
Size: 938 Bytes
Versions: 8
Compression:
Stored size: 938 Bytes
Contents
describe Ppl::Format::AddressBook::EmailAddresses do before(:each) do @format = Ppl::Format::AddressBook::EmailAddresses.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.add_contact(@contact) end describe "#process" do it "should at least show the contact's id" do @table.should_receive(:add_row).with({ :id => "test:", :email_addresses => nil, }) @format.process(@address_book) end it "should show an email address if it's available" do @contact.email_addresses.push "jdoe@example.org" @table.should_receive(:add_row).with({ :id => "test:", :email_addresses => "jdoe@example.org", }) @format.process(@address_book) end end end
Version data entries
8 entries across 8 versions & 1 rubygems