summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-04-18 14:05:57 +0100
committerLars Wirzenius <liw@liw.fi>2014-04-18 14:05:57 +0100
commitcf9b9e621528e5ca44eb3238d9b15ec05be6fafc (patch)
treeb13127f64b30253bdf14843864dd0886a8628779 /yarns
parent95a33607a440251cd3aaec4a9fc0dc317191a699 (diff)
downloaddistix-cf9b9e621528e5ca44eb3238d9b15ec05be6fafc.tar.gz
Add test case for _set and a new file
Diffstat (limited to 'yarns')
-rw-r--r--yarns/020-metadata-manipulation.yarn10
1 files changed, 9 insertions, 1 deletions
diff --git a/yarns/020-metadata-manipulation.yarn b/yarns/020-metadata-manipulation.yarn
index 34d89d7..033277a 100644
--- a/yarns/020-metadata-manipulation.yarn
+++ b/yarns/020-metadata-manipulation.yarn
@@ -35,10 +35,18 @@ A file with a single key/value pair.
THEN attempt succeeded
AND output is "key=value\n"
-Set a key/value pair.
+Set a key/value pair, in an existing file.
WHEN user attempts to run distix _set METADATA key2=value2
THEN attempt succeeded
WHEN user attempts to run distix _list METADATA
THEN attempt succeeded
AND output is "key=value\nkey2=value2\n"
+
+Set a key/value pair, in a non-existent file.
+
+ WHEN user attempts to run distix _set NEWMETA key2=value2
+ THEN attempt succeeded
+ WHEN user attempts to run distix _list NEWMETA
+ THEN attempt succeeded
+ AND output is "key2=value2\n"