[Rt-commit] rt branch, 4.0/refresh-lang-pref-fix, updated. rt-4.0.8-306-gc5ed24d

Alex Vandiver alexmv at bestpractical.com
Fri Dec 28 12:16:17 EST 2012


The branch, 4.0/refresh-lang-pref-fix has been updated
       via  c5ed24dc1ba2dde2bbe1b73ac3435880c8438cb5 (commit)
      from  f23830b2fddf40c7f3fc717d1e1caa150eac1ff1 (commit)

Summary of changes:
 t/web/user_update.t | 4 ++++
 1 file changed, 4 insertions(+)

- Log -----------------------------------------------------------------
commit c5ed24dc1ba2dde2bbe1b73ac3435880c8438cb5
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Fri Dec 28 12:16:12 2012 -0500

    Add (failing) tests to ensure that page language is correct

diff --git a/t/web/user_update.t b/t/web/user_update.t
index 5440b84..61e56dc 100644
--- a/t/web/user_update.t
+++ b/t/web/user_update.t
@@ -10,6 +10,7 @@ $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");
 
 # we only changed one field, and it wasn't the default, so this feedback is
 # spurious and annoying
@@ -22,6 +23,7 @@ $m->submit_form_ok({ with_fields => { Lang => 'en_us'} },
 # 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("Real Name", "Page content is english");
 
 # Check for a lack of spurious updates
 $m->content_lacks("That is already the current value");
@@ -30,9 +32,11 @@ $m->content_lacks("That is already the current value");
 $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("Real Name", "Page content is japanese");
 $m->submit_form_ok({ with_fields => { Lang => ''} },
                    "And set to the default");
 $m->text_contains("Langは「'ja'」から「''」に変更されました");
+$m->text_contains("Real Name", "Page content is english");
 
 undef $m;
 

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


More information about the Rt-commit mailing list