diff options
author | ivan <ivan> | 2011-02-17 00:25:23 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-02-17 00:25:23 +0000 |
commit | fc6209f398899f0211cfcedeb81a3cd65e04a941 (patch) | |
tree | bc1dc8876218529948413d85c17cd67508bdd38d /rt/t/web/cf_select_one.t | |
parent | e70abd21bab68b23488f7ef1ee2e693a3b365691 (diff) |
import rt 3.8.9
Diffstat (limited to 'rt/t/web/cf_select_one.t')
-rw-r--r-- | rt/t/web/cf_select_one.t | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/rt/t/web/cf_select_one.t b/rt/t/web/cf_select_one.t index 39a8080..26c1fcf 100644 --- a/rt/t/web/cf_select_one.t +++ b/rt/t/web/cf_select_one.t @@ -3,7 +3,7 @@ use strict; use warnings; -use RT::Test tests => 41; +use RT::Test tests => 46; my ($baseurl, $m) = RT::Test->started_ok; ok $m->login, 'logged in as root'; @@ -31,9 +31,9 @@ diag "Create a CF" if $ENV{'TEST_VERBOSE'}; ok $cfid, "found id of the CF in the form, it's #$cfid"; } -diag "add 'qwe', 'ASD' and '0' as values to the CF" if $ENV{'TEST_VERBOSE'}; +diag "add 'qwe', 'ASD', '0' and ' foo ' as values to the CF" if $ENV{'TEST_VERBOSE'}; { - foreach my $value(qw(qwe ASD 0)) { + foreach my $value(qw(qwe ASD 0), 'foo ') { $m->submit_form( form_name => "ModifyCustomField", fields => { @@ -42,6 +42,10 @@ diag "add 'qwe', 'ASD' and '0' as values to the CF" if $ENV{'TEST_VERBOSE'}; button => 'Update', ); $m->content_like( qr/Object created/, 'added a value to the CF' ); # or diag $m->content; + my $v = $value; + $v =~ s/^\s+$//; + $v =~ s/\s+$//; + $m->content_like( qr/value="$v"/, 'the added value is right' ); } } |