aboutsummaryrefslogtreecommitdiffstats
path: root/objects_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-13 22:32:34 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-13 22:32:34 +0200
commit79087748f60f9aba219624a0fe9f4d33a0b51236 (patch)
tree1c0d17543ad742d1e97276796140f8b398b74802 /objects_test.go
parenta65bcbc63bef24cf219c63d1b8cfb309c95d1c0f (diff)
downloadgo-git-79087748f60f9aba219624a0fe9f4d33a0b51236.tar.gz
Repository.Clone and Remote.Fetch tests and improvements
Diffstat (limited to 'objects_test.go')
-rw-r--r--objects_test.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/objects_test.go b/objects_test.go
index aeaceea..d24aa7b 100644
--- a/objects_test.go
+++ b/objects_test.go
@@ -10,23 +10,22 @@ import (
)
type ObjectsSuite struct {
+ BaseSuite
r *Repository
}
var _ = Suite(&ObjectsSuite{})
-/*
func (s *ObjectsSuite) SetUpTest(c *C) {
+ s.BaseSuite.SetUpTest(c)
+
var err error
- s.r, err = NewRepository(RepositoryFixture, nil)
+ s.r, err = NewMemoryRepository()
c.Assert(err, IsNil)
- s.r.Remotes["origin"].upSrv = &MockGitUploadPackService{}
-
- err = s.r.Pull("origin", "refs/heads/master")
+ err = s.r.Clone(&CloneOptions{URL: RepositoryFixture})
c.Assert(err, IsNil)
}
-*/
func (s *ObjectsSuite) TestNewCommit(c *C) {
hash := core.NewHash("a5b8b09e2f8fcb0bb99d3ccb0958157b40890d69")