Sha256: 598fe043823d3309600d5bce8056648045f60d20f0cfc7a0fb732f40ad1b7f7a
Contents?: true
Size: 691 Bytes
Versions: 3
Compression:
Stored size: 691 Bytes
Contents
describe Ppl::Format::AddressBook::MuttQuery do before(:each) do @format = Ppl::Format::AddressBook::MuttQuery.new @address_book = Ppl::Entity::AddressBook.new @contact = Ppl::Entity::Contact.new @table = double(Ppl::Format::Table) @contact.email_address = "test@example.org" @contact.name = "Test Contact" @format.table = @table @address_book.add_contact(@contact) end describe "#process" do it "should list the given contacts" do @table.should_receive(:add_row).with({ :email => "test@example.org", :name => "Test Contact", }) @format.process(@address_book) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ppl-1.3.0 | spec/ppl/format/address_book/mutt_query_spec.rb |
ppl-1.2.0 | spec/ppl/format/address_book/mutt_query_spec.rb |
ppl-1.1.0 | spec/ppl/format/address_book/mutt_query_spec.rb |