diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-04-22 20:09:28 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-04-22 20:09:28 +0100 |
commit | 17eaea153703ca44f4e4c7541e2c04abd315b83e (patch) | |
tree | e5e9b3910cb2ae2a24938c9aa5c16ccd4a5b659c /yarns | |
parent | f134dde1ddff43d8d5aef432c58e7041fa8699ec (diff) | |
download | distix-17eaea153703ca44f4e4c7541e2c04abd315b83e.tar.gz |
Test that a repo can be cloned and contains reply
Diffstat (limited to 'yarns')
-rw-r--r-- | yarns/070-reply.yarn | 15 | ||||
-rw-r--r-- | yarns/900-implements.yarn | 10 |
2 files changed, 22 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" diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn index 3c9edbb..876ae32 100644 --- a/yarns/900-implements.yarn +++ b/yarns/900-implements.yarn @@ -93,3 +93,13 @@ Does a file or directory exist? IMPLEMENTS THEN (\S+) exists test -e "$DATADIR/$MATCH_1" + + +Git operations +-------------- + +Clone a repository. + + IMPLEMENTS WHEN user clones (\S+) to (\S+) + cd "$DATADIR" + git clone "$MATCH_1" "$MATCH_2" |