spec/ppl/application/bootstrap_spec.rb in ppl-1.15.0 vs spec/ppl/application/bootstrap_spec.rb in ppl-1.15.1
- old
+ new
@@ -145,11 +145,10 @@
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(:color_enabled).with("age").and_return(true)
@config.should_receive(:command_colors).with("age").and_return(@colors)
@bootstrap.format_address_book_ages
end
end
@@ -161,11 +160,10 @@
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(:color_enabled).with("bday").and_return(true)
@config.should_receive(:command_colors).with("bday").and_return(@colors)
@bootstrap.format_address_book_birthdays
end
end
@@ -175,11 +173,10 @@
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(:color_enabled).with("email").and_return(true)
@config.should_receive(:command_colors).with("email").and_return(@colors)
@bootstrap.format_address_book_email_addresses
end
end
@@ -195,11 +192,10 @@
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(:color_enabled).with("org").and_return(true)
@config.should_receive(:command_colors).with("org").and_return(@colors)
@bootstrap.format_address_book_organizations
end
end
@@ -209,11 +205,10 @@
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(:color_enabled).with("name").and_return(true)
@config.should_receive(:command_colors).with("name").and_return(@colors)
@bootstrap.format_address_book_names
end
end
@@ -223,11 +218,10 @@
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(:color_enabled).with("nick").and_return(true)
@config.should_receive(:command_colors).with("nick").and_return(@colors)
@bootstrap.format_address_book_nicknames
end
end
@@ -237,11 +231,10 @@
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(:color_enabled).with("ls").and_return(true)
@config.should_receive(:command_colors).with("ls").and_return(@colors)
@bootstrap.format_address_book_one_line
end
end
@@ -251,11 +244,10 @@
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(:color_enabled).with("phone").and_return(true)
@config.should_receive(:command_colors).with("phone").and_return(@colors)
@bootstrap.format_address_book_phone_numbers
end
end
@@ -265,11 +257,10 @@
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(:color_enabled).with("post").and_return(true)
@config.should_receive(:command_colors).with("post").and_return(@colors)
@bootstrap.format_address_book_postal_addresses
end
end
@@ -279,11 +270,10 @@
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(:color_enabled).with("url").and_return(true)
@config.should_receive(:command_colors).with("url").and_return(@colors)
@bootstrap.format_address_book_urls
end
end
@@ -293,11 +283,10 @@
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(:color_enabled).with("age").and_return(true)
@config.should_receive(:command_colors).with("age").and_return(@colors)
@bootstrap.format_contact_age
end
end
@@ -307,11 +296,10 @@
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(:color_enabled).with("bday").and_return(true)
@config.should_receive(:command_colors).with("bday").and_return(@colors)
@bootstrap.format_contact_birthday
end
end
@@ -321,11 +309,10 @@
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(:color_enabled).with("email").and_return(true)
@config.should_receive(:command_colors).with("email").and_return(@colors)
@bootstrap.format_contact_email_addresses
end
end
@@ -335,11 +322,10 @@
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(:color_enabled).with("name").and_return(true)
@config.should_receive(:command_colors).with("name").and_return(@colors)
@bootstrap.format_contact_name
end
end
@@ -349,11 +335,10 @@
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(:color_enabled).with("nick").and_return(true)
@config.should_receive(:command_colors).with("nick").and_return(@colors)
@bootstrap.format_contact_nicknames
end
end
@@ -363,11 +348,10 @@
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(:color_enabled).with("org").and_return(true)
@config.should_receive(:command_colors).with("org").and_return(@colors)
@bootstrap.format_contact_organizations
end
end
@@ -377,11 +361,10 @@
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(:color_enabled).with("phone").and_return(true)
@config.should_receive(:command_colors).with("phone").and_return(@colors)
@bootstrap.format_contact_phone_numbers
end
end
@@ -397,11 +380,10 @@
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(:color_enabled).with("url").and_return(true)
@config.should_receive(:command_colors).with("url").and_return(@colors)
@bootstrap.format_contact_urls
end
end
@@ -538,11 +520,11 @@
@bootstrap.storage_adapter.should be_a(Ppl::Adapter::Storage)
end
end
describe "#vcard_adapter" do
- it "should return a Ppl::Adapter::Vcard::Vpim" do
- @bootstrap.vcard_adapter.should be_a(Ppl::Adapter::Vcard::Vpim)
+ it "should return a Ppl::Adapter::Vcard::GreenCard" do
+ @bootstrap.vcard_adapter.should be_a(Ppl::Adapter::Vcard::GreenCard)
end
end
end