This commit is contained in:
Naoki Takezoe
2015-02-20 13:39:47 +09:00
parent 491fc2c164
commit 196890b26f
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ trait ServiceSpecBase {
val (url, user, pass) = (DatabaseConfig.url(Some(dir.toString)), DatabaseConfig.user, DatabaseConfig.password)
org.h2.Driver.load()
using(DriverManager.getConnection(url, user, pass)){ conn =>
servlet.AutoUpdate.versions.reverse.foreach(_.update(conn))
servlet.AutoUpdate.versions.reverse.foreach(_.update(conn, Thread.currentThread.getContextClassLoader))
}
Database.forURL(url, user, pass).withSession { session =>
action(session)

View File

@@ -7,7 +7,7 @@ import javax.servlet.ServletContext
class GitCommandFactorySpec extends Specification with Mockito {
val factory = new GitCommandFactory(mock[ServletContext], "http://localhost:8080")
val factory = new GitCommandFactory("http://localhost:8080")
"createCommand" should {
"returns GitReceivePack when command is git-receive-pack" in {