spec/ppl/application/bootstrap_spec.rb in ppl-1.25.0 vs spec/ppl/application/bootstrap_spec.rb in ppl-2.0.0

- old
+ new

@@ -387,12 +387,12 @@ @bootstrap.format_contact_phone_numbers end end describe "#format_contact_postal_addresses" do - it "should return a Ppl::Format::Contact::PostalAddress" do - @bootstrap.format_contact_postal_addresses.should be_a(Ppl::Format::Contact::PostalAddress) + it "should return a Ppl::Format::Contact::PostalAddresses" do + @bootstrap.format_contact_postal_addresses.should be_a(Ppl::Format::Contact::PostalAddresses) end end describe "#format_contact_urls" do it "should return a Ppl::Format::Contact::Urls" do @@ -405,10 +405,16 @@ @config.should_receive(:command_colors).with("url").and_return(@colors) @bootstrap.format_contact_urls end end + describe "#format_postal_address_multi_line" do + it "should return a Ppl::Format::PostalAddress::MultiLine" do + @bootstrap.format_postal_address_multi_line.should be_a(Ppl::Format::PostalAddress::MultiLine) + end + end + describe "#command_suite" do before(:each) do @bootstrap.stub(:storage_adapter) end @@ -548,9 +554,15 @@ end describe "#vcard_adapter" do it "should return a Ppl::Adapter::Vcard::GreenCard" do @bootstrap.vcard_adapter.should be_a(Ppl::Adapter::Vcard::GreenCard) + end + end + + describe "#postal_address_service" do + it "should return a Ppl::Service::PostalAddress" do + @bootstrap.postal_address_service.should be_a(Ppl::Service::PostalAddress) end end end