X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Ft%2Fweb%2Fuser_update.t;h=7be088b0a11cb1b4fe395bed8bf5c6350d70415b;hb=681a340f6be4184b1472a8e1fa9cd5d074f6f325;hp=f55c773cdd42f352df4518c4a9ffc50905f5fb71;hpb=7588a4ac90a9b07c08a3107cd1107d773be1c991;p=freeside.git diff --git a/rt/t/web/user_update.t b/rt/t/web/user_update.t index f55c773cd..7be088b0a 100644 --- a/rt/t/web/user_update.t +++ b/rt/t/web/user_update.t @@ -1,6 +1,5 @@ use strict; use warnings; -use utf8; use RT::Test tests => undef; my ( $url, $m ) = RT::Test->started_ok; @@ -9,8 +8,8 @@ ok( $m->login(), 'logged in' ); $m->follow_link_ok({text => 'About me'}); $m->submit_form_ok({ with_fields => { Lang => 'ja'} }, "Change to Japanese"); -$m->text_contains("Lang changed from (no value) to 'ja'"); -$m->text_contains("実名", "Page content is japanese"); +$m->text_contains(Encode::decode("UTF-8","Langは「(値なし)」から「'ja'」に変更されました")); +$m->text_contains(Encode::decode("UTF-8","実名"), "Page content is japanese"); # we only changed one field, and it wasn't the default, so this feedback is # spurious and annoying @@ -20,9 +19,7 @@ $m->content_lacks("That is already the current value"); $m->submit_form_ok({ with_fields => { Lang => 'en_us'} }, "Change back to english"); -# This message shows up in Japanese -# $m->text_contains("Lang changed from 'ja' to 'en_us'"); -$m->text_contains("Langは「'ja'」から「'en_us'」に変更されました"); +$m->text_contains("Lang changed from 'ja' to 'en_us'"); $m->text_contains("Real Name", "Page content is english"); # Check for a lack of spurious updates @@ -31,13 +28,12 @@ $m->content_lacks("That is already the current value"); # Ensure that we can change the language back to the default. $m->submit_form_ok({ with_fields => { Lang => 'ja'} }, "Back briefly to Japanese"); -$m->text_contains("Lang changed from 'en_us' to 'ja'"); -$m->text_contains("実名", "Page content is japanese"); +$m->text_contains(Encode::decode("UTF-8","Langは「'en_us'」から「'ja'」に変更されました")); +$m->text_contains(Encode::decode("UTF-8","実名"), "Page content is japanese"); $m->submit_form_ok({ with_fields => { Lang => ''} }, "And set to the default"); -$m->text_contains("Langは「'ja'」から「''」に変更されました"); +$m->text_contains("Lang changed from 'ja' to (no value)"); $m->text_contains("Real Name", "Page content is english"); undef $m; - done_testing;