Sha256: bf48a782b88d3ab9f20ac946199bc37eff98a2f053f99d1a69a4694e681e482b
Contents?: true
Size: 844 Bytes
Versions: 7
Compression:
Stored size: 844 Bytes
Contents
require File.expand_path('../test_helper', __FILE__) describe "gitdocs configuration" do before do @config = Gitdocs::Configuration.new("/tmp/gitdocs") @config.paths = [] # Reset paths end it "has sensible default config root" do assert_equal "/tmp/gitdocs", @config.config_root end it "can retrieve empty paths" do assert_equal [], @config.paths end it "can have a path added" do @config.add_path('/my/path') assert_equal "/my/path", @config.paths.first end it "can have a path removed" do @config.add_path('/my/path') @config.add_path('/my/path/2') @config.remove_path('/my/path/2') assert_equal ["/my/path"], @config.paths end it "can normalize paths" do assert_equal File.expand_path("../test_helper.rb", Dir.pwd), @config.normalize_path("../test_helper.rb") end end
Version data entries
7 entries across 7 versions & 1 rubygems