Change CommitHook to ReceiveHook

This commit is contained in:
Naoki Takezoe
2016-01-19 12:26:20 +09:00
parent 03d4b9e9c6
commit 1b4c621fef
7 changed files with 43 additions and 30 deletions

View File

@@ -4,11 +4,11 @@ import org.specs2.mutable.Specification
import org.eclipse.jgit.transport.ReceiveCommand
import org.eclipse.jgit.lib.ObjectId
import gitbucket.core.model.CommitState
import gitbucket.core.service.ProtectedBranchService.{ProtectedBranchCommitHook, ProtectedBranchInfo}
import gitbucket.core.service.ProtectedBranchService.{ProtectedBranchReceiveHook, ProtectedBranchInfo}
class ProtectedBranchServiceSpec extends Specification with ServiceSpecBase with ProtectedBranchService with CommitStatusService {
val commitHook = new ProtectedBranchCommitHook()
val commitHook = new ProtectedBranchReceiveHook()
val now = new java.util.Date()
val sha = "0c77148632618b59b6f70004e3084002be2b8804"
val sha2 = "0c77148632618b59b6f70004e3084002be2b8805"