[Rt-commit] rt branch, 4.2/language-change-results, updated. rt-4.0.0rc7-249-gc84a3c3

Shawn Moore sartak at bestpractical.com
Fri Apr 29 13:12:38 EDT 2011


The branch, 4.2/language-change-results has been updated
       via  c84a3c3176918b489ff71c1ce1b9e27a9fc30647 (commit)
      from  6e83a725013cb70fbd716f7fa4e7e15a2e10e897 (commit)

Summary of changes:
 t/web/language_update.t |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)
 create mode 100644 t/web/language_update.t

- Log -----------------------------------------------------------------
commit c84a3c3176918b489ff71c1ce1b9e27a9fc30647
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Fri Apr 29 13:12:20 2011 -0400

    Tests for language update results being in the new (not old) language

diff --git a/t/web/language_update.t b/t/web/language_update.t
new file mode 100644
index 0000000..1de9773
--- /dev/null
+++ b/t/web/language_update.t
@@ -0,0 +1,24 @@
+#!/usr/bin/perl
+use strict;
+use warnings;
+use utf8;
+use RT::Test tests => 9;
+
+my ( $url, $m ) = RT::Test->started_ok;
+ok( $m->login(), 'logged in' );
+
+$m->follow_link_ok({text => 'About me'});
+$m->form_with_fields('Lang');
+$m->field(Lang => 'zh_TW');
+$m->submit;
+
+$m->text_contains("並讓現存的 iCal feeds不再能用", "successfully updated to zh_TW");
+$m->text_contains("使用語言 的值從 (無) 改為 'zh_TW'", "when updating to language zh_TW, results are in zh_TW");
+
+$m->form_with_fields('Lang');
+$m->field(Lang => 'en_us');
+$m->submit;
+
+$m->text_contains("Lang changed from 'zh_TW' to 'en_us'", "successfully updated to en_us");
+$m->text_contains("breaking all existing iCal feeds", "when updating to language en_us, results are in en_us");
+

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


More information about the Rt-commit mailing list