Only test locked property file is not writeable.

This commit is contained in:
Erik C. Thauvin 2021-05-11 22:13:39 -07:00
parent 993d6f6f83
commit 13f0cd5b78

View file

@ -232,8 +232,10 @@ object UtilsSpec : Spek(
} }
Then("saving the locked properties file") { Then("saving the locked properties file") {
assertFailsWith<GradleException> { if (!propsLocked.canWrite()) {
Utils.saveProperties(propsLocked.parentFile, config, version) assertFailsWith<GradleException> {
Utils.saveProperties(propsLocked.parentFile, config, version)
}
} }
propsLocked.delete() propsLocked.delete()
} }