diff options
Diffstat (limited to 'git-codereview/mail_test.go')
| -rw-r--r-- | git-codereview/mail_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/git-codereview/mail_test.go b/git-codereview/mail_test.go index 22d4747..c655b54 100644 --- a/git-codereview/mail_test.go +++ b/git-codereview/mail_test.go @@ -220,6 +220,19 @@ func TestMailShort(t *testing.T) { testPrintedStderr(t, "unknown reviewer: missing") } +func TestWIP(t *testing.T) { + gt := newGitTest(t) + defer gt.done() + gt.work(t) + + h := CurrentBranch().Pending()[0].ShortHash + + testMain(t, "mail", "-wip") + testRan(t, + "git push -q origin HEAD:refs/for/master%wip", + "git tag -f work.mailed "+h) +} + func TestMailTopic(t *testing.T) { gt := newGitTest(t) defer gt.done() |
