blob: 3b9a229ba11dde6d8c7297eb0666e6d9603715ba [file] [log] [blame]
package org.apache.amaterasu.leader.common.dsl
import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.given
import org.jetbrains.spek.api.dsl.it
import java.io.File
class GitUtilTests : Spek({
given("a repo and a branch") {
val repo = "https://github.com/shintoio/amaterasu-job-sample.git"
val branch = "feature/new-format"
it("clones the repo successfully") {
GitUtil.cloneRepo(repo, branch)
assert(File("repo").exists())
}
}
})