[Rt-commit] r8350 - rt/branches/3.7-EXPERIMENTAL-TUNIS/t/mail
ruz at bestpractical.com
ruz at bestpractical.com
Tue Jul 31 21:35:53 EDT 2007
Author: ruz
Date: Tue Jul 31 21:35:52 2007
New Revision: 8350
Modified:
rt/branches/3.7-EXPERIMENTAL-TUNIS/t/mail/gateway.t
Log:
* use RT's name from the config in tests
Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/t/mail/gateway.t
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/t/mail/gateway.t (original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/t/mail/gateway.t Tue Jul 31 21:35:52 2007
@@ -688,11 +688,13 @@
($id) = $tick->Create( Queue => $qid, Subject => 'test' );
ok( $id, 'create new ticket' );
+my $rtname = RT->Config->Get('rtname');
+
$! = 0;
ok(open(MAIL, "|$RT::BinPath/rt-mailgate --url $url --queue ext-mailgate --action take"), "Opened the mailgate - $!");
print MAIL <<EOF;
From: ext-mailgate\@localhost
-Subject: [example.com \#$id] test
+Subject: [$rtname \#$id] test
EOF
close (MAIL);
@@ -710,7 +712,7 @@
ok(open(MAIL, "|$RT::BinPath/rt-mailgate --url $url --queue ext-mailgate --action correspond-take"), "Opened the mailgate - $!");
print MAIL <<EOF;
From: ext-mailgate\@localhost
-Subject: [example.com \#$id] test
+Subject: [$rtname \#$id] test
correspond-take
EOF
@@ -725,7 +727,7 @@
ok(open(MAIL, "|$RT::BinPath/rt-mailgate --url $url --queue ext-mailgate --action take-correspond"), "Opened the mailgate - $!");
print MAIL <<EOF;
From: ext-mailgate\@localhost
-Subject: [example.com \#$id] test
+Subject: [$rtname \#$id] test
correspond-take
EOF
@@ -766,7 +768,7 @@
ok(open(MAIL, "|$RT::BinPath/rt-mailgate --url $url --queue ext-mailgate --action take-correspond"), "Opened the mailgate - $!");
print MAIL <<EOF;
From: ext-mailgate\@localhost
-Subject: [example.com \#$id] test
+Subject: [$rtname \#$id] test
take-correspond with reply right granted to owner role
EOF
More information about the Rt-commit
mailing list