From 124f3319634603267ef60e0d7b63cd28d246a884 Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Sat, 18 Jul 2015 22:01:45 +0900 Subject: [PATCH] Fix testcase --- src/test/scala/gitbucket/core/ssh/GitCommandSpec.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/scala/gitbucket/core/ssh/GitCommandSpec.scala b/src/test/scala/gitbucket/core/ssh/GitCommandSpec.scala index d3eb8a7bc..f8d1621d2 100644 --- a/src/test/scala/gitbucket/core/ssh/GitCommandSpec.scala +++ b/src/test/scala/gitbucket/core/ssh/GitCommandSpec.scala @@ -11,13 +11,13 @@ class GitCommandFactorySpec extends Specification with Mockito { "createCommand" should { "returns GitReceivePack when command is git-receive-pack" in { - factory.createCommand("git-receive-pack '/owner/repo.git'").isInstanceOf[GitReceivePack] must beTrue - factory.createCommand("git-receive-pack '/owner/repo.wiki.git'").isInstanceOf[GitReceivePack] must beTrue + factory.createCommand("git-receive-pack '/owner/repo.git'").isInstanceOf[DefaultGitReceivePack] must beTrue + factory.createCommand("git-receive-pack '/owner/repo.wiki.git'").isInstanceOf[DefaultGitReceivePack] must beTrue } "returns GitUploadPack when command is git-upload-pack" in { - factory.createCommand("git-upload-pack '/owner/repo.git'").isInstanceOf[GitUploadPack] must beTrue - factory.createCommand("git-upload-pack '/owner/repo.wiki.git'").isInstanceOf[GitUploadPack] must beTrue + factory.createCommand("git-upload-pack '/owner/repo.git'").isInstanceOf[DefaultGitUploadPack] must beTrue + factory.createCommand("git-upload-pack '/owner/repo.wiki.git'").isInstanceOf[DefaultGitUploadPack] must beTrue } "returns UnknownCommand when command is not git-(upload|receive)-pack" in {