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