mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-09 06:55:54 +01:00
Fix test code package name
This commit is contained in:
15
src/test/scala/gitbucket/core/util/DirectorySpec.scala
Normal file
15
src/test/scala/gitbucket/core/util/DirectorySpec.scala
Normal file
@@ -0,0 +1,15 @@
|
||||
package gitbucket.core.util
|
||||
|
||||
import org.specs2.mutable._
|
||||
|
||||
|
||||
class DirectorySpec extends Specification {
|
||||
"GitBucketHome" should {
|
||||
"set under target in test scope" in {
|
||||
Directory.GitBucketHome mustEqual new java.io.File("target/gitbucket_home_for_test").getAbsolutePath
|
||||
}
|
||||
"exists" in {
|
||||
new java.io.File(Directory.GitBucketHome).exists
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user