[Rt-commit] rt branch, 4.4/signature-spacing-test-fix, created. rt-4.4.0-112-g344a35c

Rachel Kelly rachel at bestpractical.com
Tue May 10 18:07:34 EDT 2016


The branch, 4.4/signature-spacing-test-fix has been created
        at  344a35cf01d302d528851a6774c8006fd52f8108 (commit)

- Log -----------------------------------------------------------------
commit 344a35cf01d302d528851a6774c8006fd52f8108
Author: rachelkelly <rachel at bestpractical.com>
Date:   Thu May 5 07:05:25 2016 +0000

    Add regex to match against date-time-user Quote Header

diff --git a/t/web/signatures.t b/t/web/signatures.t
index becc1f9..ce1a118 100644
--- a/t/web/signatures.t
+++ b/t/web/signatures.t
@@ -4,11 +4,7 @@ use warnings;
 use RT::Test tests => undef;
 use HTML::Entities qw/decode_entities/;
 
-# Remove the timestamp from the quote header
-{
-    no warnings 'redefine';
-    *RT::Transaction::QuoteHeader = sub { "Someone wrote:" };
-}
+# Removed the: Remove the timestamp from the quote header
 
 my ($baseurl, $m) = RT::Test->started_ok;
 ok( $m->login, 'logged in' );
@@ -56,6 +52,8 @@ sub template_is {
     my $display = $value;
     $display =~ s/^$/./mg;
     $display =~ s/([ ]+)$/$1\$/mg;
+    $display =~ s/On .* wrote:/Someone wrote:/;
+
 
     is($display, $expected, "Content matches expected");
 

-----------------------------------------------------------------------


More information about the rt-commit mailing list