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

Version Path
ppl-1.8.0 spec/ppl/entity/address_book_spec.rb
ppl-1.7.0 spec/ppl/entity/address_book_spec.rb
ppl-1.6.0 spec/ppl/entity/address_book_spec.rb
ppl-1.5.3 spec/ppl/entity/address_book_spec.rb
ppl-1.5.2 spec/ppl/entity/address_book_spec.rb
ppl-1.5.1 spec/ppl/entity/address_book_spec.rb
ppl-1.5.0 spec/ppl/entity/address_book_spec.rb
ppl-1.4.1 spec/ppl/entity/address_book_spec.rb
ppl-1.3.0 spec/ppl/entity/address_book_spec.rb
ppl-1.2.0 spec/ppl/entity/address_book_spec.rb
ppl-1.1.0 spec/ppl/entity/address_book_spec.rb
ppl-1.0.6 spec/ppl/entity/address_book_spec.rb
ppl-1.0.5 spec/ppl/entity/address_book_spec.rb
ppl-1.0.4 spec/ppl/entity/address_book_spec.rb
ppl-1.0.3 spec/ppl/entity/address_book_spec.rb
ppl-1.0.1 spec/ppl/entity/address_book_spec.rb
ppl-1.0.0 spec/ppl/entity/address_book_spec.rb
ppl-0.9.0 spec/ppl/entity/address_book_spec.rb
ppl-0.3.0 spec/ppl/entity/address_book_spec.rb
ppl-0.2.0 spec/ppl/entity/address_book_spec.rb