summaryrefslogtreecommitdiff
path: root/yarns/070-reply.yarn
blob: 43170a7e511ba12d00d73136f21846dcd593072d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Reply to tickets
================

This chapter contains scenarios for testing replying to existing
tickets.

    SCENARIO reply to ticket

    WHEN user attempts to run distix init REPO
    THEN attempt succeeded

    WHEN user changes working directory to REPO
    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
    THEN attempt succeeded
    AND everything in REPO is committed to git

    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"