Format code

This commit is contained in:
Michael de Wit
2016-12-22 11:54:53 +01:00
parent 3884e589a9
commit 5c2938d970
3 changed files with 14 additions and 14 deletions

View File

@@ -128,11 +128,11 @@ func Test_gogs(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.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.Describe("Given an authentication request", func() {
g.It("Should redirect to login form")
@@ -185,7 +185,7 @@ var (
Commit: "9ecad50",
}
fakeBuildWithRef = &model.Build{
Ref: "refs/tags/v1.0.0",
}
fakeBuildWithRef = &model.Build{
Ref: "refs/tags/v1.0.0",
}
)