Sha256: 63fd7b72fdb883932c77664c766865b65092205250af4601db317ab9f88a768d
Contents?: true
Size: 526 Bytes
Versions: 20
Compression:
Stored size: 526 Bytes
Contents
describe Ppl::Entity::AddressBook do before(:each) do @address_book = Ppl::Entity::AddressBook.new end describe "#add_contact" do it "should accept a contact" do @address_book.add_contact(double(Ppl::Entity::Contact)) @address_book.count.should be 1 end end describe "#each" do it "should yield contacts" do contact = double(Ppl::Entity::Contact) @address_book.add_contact(contact) @address_book.each do |c| c.should be contact end end end end
Version data entries
20 entries across 20 versions & 1 rubygems