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

- old
+ new

@@ -334,20 +334,20 @@ @config.should_receive(:command_colors).with("email").and_return(@colors) @bootstrap.format_contact_email_addresses end end - describe "#format_contact_name" do + describe "#format_name_full_only" do it "should return a Ppl::Format::Contact::Name" do - @bootstrap.format_contact_name.should be_a(Ppl::Format::Contact::Name) + @bootstrap.format_name_full_only.should be_a(Ppl::Format::Name::FullOnly) end it "should set up colored output if configured to do so" do @colors = {} @config = double(Ppl::Application::Configuration) @bootstrap.stub(:configuration).and_return(@config) @config.should_receive(:command_colors).with("name").and_return(@colors) - @bootstrap.format_contact_name + @bootstrap.format_name_full_only end end describe "#format_contact_nicknames" do it "should return a Ppl::Format::Contact::Nicknames" do @@ -554,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 "#name_service" do + it "should return a Ppl::Service::Name" do + @bootstrap.name_service.should be_a(Ppl::Service::Name) end end describe "#postal_address_service" do it "should return a Ppl::Service::PostalAddress" do