aboutsummaryrefslogtreecommitdiffstats
path: root/objects_test.go
diff options
context:
space:
mode:
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")