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

Version Path
ppl-1.14.1 spec/ppl/application/configuration_spec.rb
ppl-1.14.0 spec/ppl/application/configuration_spec.rb
ppl-1.13.0 spec/ppl/application/configuration_spec.rb
ppl-1.12.0 spec/ppl/application/configuration_spec.rb
ppl-1.11.0 spec/ppl/application/configuration_spec.rb
ppl-1.10.0 spec/ppl/application/configuration_spec.rb
ppl-1.9.0 spec/ppl/application/configuration_spec.rb
ppl-1.8.0 spec/ppl/application/configuration_spec.rb
ppl-1.7.0 spec/ppl/application/configuration_spec.rb
ppl-1.6.0 spec/ppl/application/configuration_spec.rb
ppl-1.5.3 spec/ppl/application/configuration_spec.rb
ppl-1.5.2 spec/ppl/application/configuration_spec.rb
ppl-1.5.1 spec/ppl/application/configuration_spec.rb
ppl-1.5.0 spec/ppl/application/configuration_spec.rb
ppl-1.4.1 spec/ppl/application/configuration_spec.rb
ppl-1.3.0 spec/ppl/application/configuration_spec.rb
ppl-1.2.0 spec/ppl/application/configuration_spec.rb
ppl-1.1.0 spec/ppl/application/configuration_spec.rb
ppl-1.0.6 spec/ppl/application/configuration_spec.rb
ppl-1.0.5 spec/ppl/application/configuration_spec.rb