diff options
| author | Teddy Wing | 2015-06-14 19:48:58 -0400 |
|---|---|---|
| committer | Teddy Wing | 2015-06-14 19:48:58 -0400 |
| commit | f1b64d6816086554cc5538eca24e0cdba36dff70 (patch) | |
| tree | 134eaeb474514b7a1734cf45ed4071952977b857 /test.pl | |
| parent | bef0d13cf98bb8d8bb354b6cc6181b6729aaa04b (diff) | |
| download | irssi-hipchat-stfu-f1b64d6816086554cc5538eca24e0cdba36dff70.tar.bz2 | |
Change title message format (single line)
Change the format so that the title message is on a single line instead
of 3. Typically this will mean that the message will appear on 2 lines,
which is still better than 3 lines, saving us some vertical space.
Diffstat (limited to 'test.pl')
| -rwxr-xr-x | test.pl | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -5,15 +5,11 @@ use strict; use Test::More tests => 9; require 'prettify_hipchat.pl'; -my $title_message = <<'END_MESSAGE'; -SC-1000 : Some kind of issue text that is kind of long and describes the problem that we saw during testing. -https://somecompany.atlassian.net/browse/SC-2169 -Created by Person Name -END_MESSAGE -chomp($title_message); is(prettify_hipchat(' <img src="https://somecompany.atlassian.net/images/16jira.png" height="16" width="16" /> <a href="https://somecompany.atlassian.net/browse/SC-2169"><b>SC-1000 : Some kind of issue text that is kind of long and describes the problem that we saw during testing.</b></a> Created by <a href="https://somecompany.atlassian.net/secure/ViewProfile.jspa?name=PersonN">Person Name</a><br />'), - $title_message, + 'SC-1000 : Some kind of issue text that is kind of long and describes the ' . + 'problem that we saw during testing. (Person Name) ' . + '(https://somecompany.atlassian.net/browse/SC-2169)', 'Title, link, and creator'); is(prettify_hipchat('<span style="color: dimgrey;">Type:</span> <img src="https://somecompany.atlassian.net/images/icons/issuetypes/bug.png" height="16" width="16" /> Bug '), 'Type: Bug', |
