Sha256: 2ee53d0ae052f17ed1370957f752f850c61feb968727fce11685459f85d3ab95
Contents?: true
Size: 909 Bytes
Versions: 1
Compression:
Stored size: 909 Bytes
Contents
describe Ppl::Format::AddressBook::Organizations do before(:each) do @format = Ppl::Format::AddressBook::Organizations.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:", :organization => nil, }) @format.process(@address_book) end it "should show the organization if it's available" do @contact.organization = "Example Ltd" @table.should_receive(:add_row).with({ :id => "test:", :organization => "Example Ltd", }) @format.process(@address_book) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ppl-1.9.0 | spec/ppl/format/address_book/organizations_spec.rb |