mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-08 06:25:51 +01:00
Fix testcases
This commit is contained in:
@@ -22,7 +22,7 @@ class JsonFormatSpec extends FunSuite {
|
|||||||
}
|
}
|
||||||
val sha1 = "6dcb09b5b57875f334f61aebed695e2e4193db5e"
|
val sha1 = "6dcb09b5b57875f334f61aebed695e2e4193db5e"
|
||||||
val repo1Name = RepositoryName("octocat/Hello-World")
|
val repo1Name = RepositoryName("octocat/Hello-World")
|
||||||
implicit val context = JsonFormat.Context("http://gitbucket.exmple.com")
|
implicit val context = JsonFormat.Context("http://gitbucket.exmple.com", None)
|
||||||
|
|
||||||
val apiUser = ApiUser(
|
val apiUser = ApiUser(
|
||||||
login = "octocat",
|
login = "octocat",
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import org.scalatest.FunSpec
|
|||||||
|
|
||||||
class GitCommandFactorySpec extends FunSpec {
|
class GitCommandFactorySpec extends FunSpec {
|
||||||
|
|
||||||
val factory = new GitCommandFactory("http://localhost:8080")
|
val factory = new GitCommandFactory("http://localhost:8080", None)
|
||||||
|
|
||||||
describe("createCommand") {
|
describe("createCommand") {
|
||||||
it("should return GitReceivePack when command is git-receive-pack"){
|
it("should return GitReceivePack when command is git-receive-pack"){
|
||||||
|
|||||||
Reference in New Issue
Block a user