summaryrefslogtreecommitdiff
path: root/yarns/070-reply.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-04-22 20:09:28 +0100
committerLars Wirzenius <liw@liw.fi>2014-04-22 20:09:28 +0100
commit17eaea153703ca44f4e4c7541e2c04abd315b83e (patch)
treee5e9b3910cb2ae2a24938c9aa5c16ccd4a5b659c /yarns/070-reply.yarn
parentf134dde1ddff43d8d5aef432c58e7041fa8699ec (diff)
downloaddistix-17eaea153703ca44f4e4c7541e2c04abd315b83e.tar.gz
Test that a repo can be cloned and contains reply
Diffstat (limited to 'yarns/070-reply.yarn')
-rw-r--r--yarns/070-reply.yarn15
1 files changed, 12 insertions, 3 deletions
diff --git a/yarns/070-reply.yarn b/yarns/070-reply.yarn
index fe2f1f6..8332642 100644
--- a/yarns/070-reply.yarn
+++ b/yarns/070-reply.yarn
@@ -10,12 +10,21 @@ tickets.
THEN attempt succeeded
WHEN user changes working directory to REPO
- AND user attempts to run distix new new-ticket-title --save-ticket-id=NEW
+ AND user attempts to run distix new new-ticket-title --save-ticket-id=../NEW
THEN attempt succeeded
- WHEN user attempts to run distix reply DUMMYID --ticket-id-from=NEW --message=a-reply
+ WHEN user attempts to run distix reply DUMMYID --ticket-id-from=../NEW --message=a-reply
THEN attempt succeeded
- WHEN user attempts to run distix show --ticket-id-from=NEW
+ WHEN user attempts to run distix show --ticket-id-from=../NEW
+ THEN attempt succeeded
+ AND output matches "a-reply"
+
+We want to be able to clone the repo and have it work.
+
+ WHEN user changes working directory to ..
+ AND user clones REPO to REPO2
+ AND user changes working directory to REPO2
+ AND user attempts to run distix show --ticket-id-from=../NEW
THEN attempt succeeded
AND output matches "a-reply"