aboutsummaryrefslogtreecommitdiffstats
path: root/storage/filesystem/internal/dotgit/dotgit_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-20 01:29:07 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-20 01:29:07 +0200
commit9f49aaed839ae608a0ffdaa0656b3975d3404002 (patch)
treecc196dbcf8d1994f83b4950bf35948ac17303b5b /storage/filesystem/internal/dotgit/dotgit_test.go
parent1d56b98d9b02e20f7feea542c75746eab34fad63 (diff)
downloadgo-git-9f49aaed839ae608a0ffdaa0656b3975d3404002.tar.gz
storage: support ConfigStorage, memory done, fs wip
Diffstat (limited to 'storage/filesystem/internal/dotgit/dotgit_test.go')
-rw-r--r--storage/filesystem/internal/dotgit/dotgit_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/storage/filesystem/internal/dotgit/dotgit_test.go b/storage/filesystem/internal/dotgit/dotgit_test.go
index 6125114..7c39c87 100644
--- a/storage/filesystem/internal/dotgit/dotgit_test.go
+++ b/storage/filesystem/internal/dotgit/dotgit_test.go
@@ -143,6 +143,14 @@ func (s *SuiteDotGit) TestRefsFromHEADFile(c *C) {
c.Assert(string(ref.Target()), Equals, "refs/heads/master")
}
+func (s *SuiteDotGit) TestConfig(c *C) {
+ _, d := s.newFixtureDir(c, "spinnaker")
+ fs, path, err := d.Config()
+ c.Assert(err, IsNil)
+ c.Assert(fs, NotNil)
+ c.Assert(path, Not(Equals), "")
+}
+
func findReference(refs []*core.Reference, name string) *core.Reference {
n := core.ReferenceName(name)
for _, ref := range refs {