aboutsummaryrefslogtreecommitdiffstats
path: root/config/config_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/config_test.go')
-rw-r--r--config/config_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/config_test.go b/config/config_test.go
index 019cee6..1f120c0 100644
--- a/config/config_test.go
+++ b/config/config_test.go
@@ -156,3 +156,12 @@ func (s *ConfigSuite) TestRemoteConfigValidateDefault(c *C) {
c.Assert(fetch, HasLen, 1)
c.Assert(fetch[0].String(), Equals, "+refs/heads/*:refs/remotes/foo/*")
}
+
+func (s *ConfigSuite) TestRemoteConfigDefaultValues(c *C) {
+ config := NewConfig()
+
+ c.Assert(config.Remotes, HasLen, 0)
+ c.Assert(config.Submodules, HasLen, 0)
+ c.Assert(config.Raw, NotNil)
+ c.Assert(config.Pack.Window, Equals, DefaultPackWindow)
+}