Skip to content

Commit

Permalink
fix gitea file testing.
Browse files Browse the repository at this point in the history
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed May 24, 2017
1 parent f186d4c commit 7f072e3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions remote/gitea/gitea_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,6 @@ func Test_gitea(t *testing.T) {
g.Assert(string(raw)).Equal("{ platform: linux/amd64 }")
})

g.It("Should return a repository file from a ref", func() {
raw, err := c.File(fakeUser, fakeRepo, fakeBuildWithRef, ".drone.yml")
g.Assert(err == nil).IsTrue()
g.Assert(string(raw)).Equal("{ platform: linux/amd64 }")
})

g.It("Should return nil from send build status", func() {
err := c.Status(fakeUser, fakeRepo, fakeBuild, "http://gitea.io")
g.Assert(err == nil).IsTrue()
Expand Down Expand Up @@ -186,8 +180,4 @@ var (
fakeBuild = &model.Build{
Commit: "9ecad50",
}

fakeBuildWithRef = &model.Build{
Ref: "refs/tags/v1.0.0",
}
)

0 comments on commit 7f072e3

Please sign in to comment.