diff options
author | ivan <ivan> | 2011-02-17 00:25:23 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-02-17 00:25:23 +0000 |
commit | 0fb307c305e4bc2c9c27dc25a3308beae3a4d33c (patch) | |
tree | 9d527e17db4b4d875f63f019dcd513762bb938a6 /rt/t/web/cf_select_one.t | |
parent | 6a79fae0c14b6635c67b4f224ee4a14f263b37d0 (diff) | |
parent | fc6209f398899f0211cfcedeb81a3cd65e04a941 (diff) |
This commit was generated by cvs2svn to compensate for changes in r10640,
which included commits to RCS files with non-trunk default branches.
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 39a808083..26c1fcf65 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' ); } } |