spec/ppl/format/address_book/ages_spec.rb in ppl-1.14.1 vs spec/ppl/format/address_book/ages_spec.rb in ppl-1.15.0

- old
+ new

@@ -1,6 +1,16 @@ describe Ppl::Format::AddressBook::Ages do + describe "#initialize" do + it "should pass the colors through to the table" do + colors = {"id" => "blue"} + Ppl::Format::Table.should_receive(:new).with([:id, :age], colors) + format = Ppl::Format::AddressBook::Ages.new(colors) + end + end +end + +describe Ppl::Format::AddressBook::Ages do before(:each) do @format = Ppl::Format::AddressBook::Ages.new @address_book = Ppl::Entity::AddressBook.new @contact = Ppl::Entity::Contact.new