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,9 +232,11 @@ object UtilsSpec : Spek(
} }
Then("saving the locked properties file") { Then("saving the locked properties file") {
if (!propsLocked.canWrite()) {
assertFailsWith<GradleException> { assertFailsWith<GradleException> {
Utils.saveProperties(propsLocked.parentFile, config, version) Utils.saveProperties(propsLocked.parentFile, config, version)
} }
}
propsLocked.delete() propsLocked.delete()
} }
} }