[Rt-commit] rtfm branch, master, updated. 548c9077db2ba1ec85f1449ae1f4c5ac2049b84e
? sunnavy
sunnavy at bestpractical.com
Thu Sep 16 03:01:36 EDT 2010
The branch, master has been updated
via 548c9077db2ba1ec85f1449ae1f4c5ac2049b84e (commit)
from fbae217fe016bdf09b190f1999a3116466befffa (commit)
Summary of changes:
t/3upload-customfields.t | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 548c9077db2ba1ec85f1449ae1f4c5ac2049b84e
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Sep 16 15:02:02 2010 +0800
update test since logo path was updated
diff --git a/t/3upload-customfields.t b/t/3upload-customfields.t
index e0d47be..0cc60ae 100644
--- a/t/3upload-customfields.t
+++ b/t/3upload-customfields.t
@@ -8,7 +8,16 @@ use RT::FM::Test tests => 21;
$RT::Test::SKIP_REQUEST_WORK_AROUND = 1;
use RT;
-use constant ImageFile => $RT::MasonComponentRoot .'/NoAuth/images/bplogo.gif';
+my $logo;
+BEGIN {
+ $logo =
+ -e $RT::MasonComponentRoot . '/NoAuth/images/bpslogo.png'
+ ? 'bpslogo.png'
+ : 'bplogo.gif';
+}
+
+use constant ImageFile => $RT::MasonComponentRoot . "/NoAuth/images/$logo";
+
use constant ImageFileContent => do {
local $/;
open my $fh, '<', ImageFile or die ImageFile.$!;
@@ -80,5 +89,5 @@ my $id = $1 if $m->content =~ /Article (\d+) created/;
$m->title_like(qr/Modify article #$id/, "Editing article $id");
-$m->follow_link( text => 'bplogo.gif' );
+$m->follow_link( text => $logo );
$m->content_is(ImageFileContent, "it links to the uploaded image");
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list