Sha256: 827a6576e458875d2c27b3389087a7c16a564e66c3160c7fc71044832a7c26cb
Contents?: true
Size: 697 Bytes
Versions: 25
Compression:
Stored size: 697 Bytes
Contents
describe Ppl::Application::Configuration do before(:each) do FakeFS.activate! @config = Ppl::Application::Configuration.new end after(:each) do FakeFS.deactivate! end describe "#address_book_path" do it "should default to the current working directory" do @config.address_book_path.should eq Dir.pwd end it "should be configurable by the user's config file" do @config.stub(:user_configuration) do {"address book" => {"path" => "/contacts"}} end @config.address_book_path.should eq "/contacts" end end describe "#aliases" do it "should return a hash" do @config.aliases.should be_a(Hash) end end end
Version data entries
25 entries across 25 versions & 1 rubygems