test/configuration_test.rb in gitdocs-0.3.3 vs test/configuration_test.rb in gitdocs-0.3.4
- old
+ new
@@ -24,9 +24,16 @@
@config.add_path('/my/path/2')
@config.remove_path('/my/../my/path/2') # normalized test
assert_equal ["/my/path"], @config.shares.map(&:path)
end
+ it "can clear paths" do
+ @config.add_path('/my/path')
+ @config.add_path('/my/path/2')
+ @config.clear
+ assert_equal [], @config.shares.map(&:path)
+ end
+
it "can normalize paths" do
assert_equal File.expand_path("../test_helper.rb", Dir.pwd), @config.normalize_path("../test_helper.rb")
end
end
\ No newline at end of file