diff options
Diffstat (limited to 'config/config_test.go')
-rw-r--r-- | config/config_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/config_test.go b/config/config_test.go index 157be95..e68626b 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -170,6 +170,12 @@ func (s *ConfigSuite) TestUnmarshalMarshal(c *C) { c.Assert(string(output), DeepEquals, string(input)) } +func (s *ConfigSuite) TestLoadConfig(c *C) { + cfg, err := LoadConfig(GlobalScope) + c.Assert(err, IsNil) + c.Assert(cfg.User.Email, Not(Equals), "") +} + func (s *ConfigSuite) TestValidateConfig(c *C) { config := &Config{ Remotes: map[string]*RemoteConfig{ |