[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-806-gb1bc85e
Jesse Vincent
jesse at bestpractical.com
Sat Sep 18 23:21:04 EDT 2010
The branch, 3.9-trunk has been updated
via b1bc85e9b10b24732feec2f2d232508f581a3144 (commit)
from 37dac467ee6b7038d46a31c4ed4e28956c6466a1 (commit)
Summary of changes:
lib/RT/Test.pm | 1 +
t/web/offline_messages_utf8.t | 6 +++---
2 files changed, 4 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit b1bc85e9b10b24732feec2f2d232508f581a3144
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Sat Sep 18 23:23:23 2010 -0400
since parsing lexicons takes ~forever, only load the 3 we care about.
this leads to a 10% performance improvement in tests for me.
diff --git a/lib/RT/Test.pm b/lib/RT/Test.pm
index 4772754..1d6e1d4 100644
--- a/lib/RT/Test.pm
+++ b/lib/RT/Test.pm
@@ -244,6 +244,7 @@ sub bootstrap_config {
Set( \$WebDomain, "localhost");
Set( \$WebPort, $port);
Set( \$WebPath, "");
+Set( \@LexiconLanguages, qw(en zh_TW fr));
Set( \$RTAddressRegexp , qr/^bad_re_that_doesnt_match\$/);
};
if ( $ENV{'RT_TEST_DB_SID'} ) { # oracle case
diff --git a/t/web/offline_messages_utf8.t b/t/web/offline_messages_utf8.t
index c32e0bc..5a91bd3 100644
--- a/t/web/offline_messages_utf8.t
+++ b/t/web/offline_messages_utf8.t
@@ -8,7 +8,7 @@ use Encode;
use RT::Ticket;
my ( $url, $m ) = RT::Test->started_ok;
-$m->default_header( 'Accept-Language' => "zh-cn" );
+$m->default_header( 'Accept-Language' => "zh-tw" );
ok( $m->login, 'logged in' );
my $ticket_id;
@@ -38,7 +38,7 @@ EOF
button => 'UpdateTickets',
);
my $content = encode 'utf8', $m->content;
- ok( $content =~ qr/ç³è¯·å #(\d+) æåæ°å¢äº 'General' 表å/, 'message is shown right' );
+ ok( $content =~ qr/ç³è«å® #(\d+) æåæ°å¢æ¼ 'General' 表å®/, 'message is shown right' );
$ticket_id = $1;
}
@@ -60,7 +60,7 @@ EOF
my $content = encode 'utf8', $m->content;
ok(
$content =~
-qr/主é¢\s*çå¼ä»\s*'test message'\s*æ¹ä¸º\s*'test message update'/,
+qr/主é¡\s*çå¼å¾\s*'test message'\s*æ¹çº\s*'test message update'/,
'subject is updated'
);
}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list