diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-10-26 11:35:57 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-10-26 11:36:34 +0200 |
commit | 2474a9e50e5d21ed6b3fd825d9fe565b79f62014 (patch) | |
tree | a8faed6b79069c35a39983831f8f3089878545a2 /test | |
parent | 22f0f794ac4e40866c5d390a7b27b8bd6713e681 (diff) | |
download | app.sh-2474a9e50e5d21ed6b3fd825d9fe565b79f62014.tar.gz app.sh-2474a9e50e5d21ed6b3fd825d9fe565b79f62014.tar.bz2 app.sh-2474a9e50e5d21ed6b3fd825d9fe565b79f62014.tar.xz app.sh-2474a9e50e5d21ed6b3fd825d9fe565b79f62014.zip |
o Adding '-f [file]' option to app-conf set.
Diffstat (limited to 'test')
-rwxr-xr-x | test/app-conf.bats | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/app-conf.bats b/test/app-conf.bats index 5c5da05..97041cd 100755 --- a/test/app-conf.bats +++ b/test/app-conf.bats @@ -103,6 +103,26 @@ setup_inner() { eq '${#lines[*]}' 2 } +@test "./app conf set -f" { + echo "" > .app/config + + app conf set -f myconfig group.foo bar + eq '${#lines[*]}' 0 + + app_libexec app-cat-conf -f myconfig + eq '${lines[0]}' "group.foo=bar" + eq '${#lines[*]}' 1 + + run cat .app/config + eq '$status' 0 + eq '${#lines[*]}' 0 + + run cat myconfig + eq '$status' 0 + eq '${lines[0]}' "group.foo=bar" + eq '${#lines[*]}' 1 +} + @test "./app conf set - values with '=' and spaces" { echo > .app/config app conf set app.env "JAVA_OPTS=-Xmx1G -Dawesome=true" |