Only test locked property file is not writeable.
This commit is contained in:
parent
993d6f6f83
commit
13f0cd5b78
1 changed files with 4 additions and 2 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue