[Rt-commit] r11483 - rt/branches/3.6-RELEASE/lib/t/regression
ruz at bestpractical.com
ruz at bestpractical.com
Fri Apr 4 01:25:09 EDT 2008
Author: ruz
Date: Fri Apr 4 01:25:09 2008
New Revision: 11483
Modified:
rt/branches/3.6-RELEASE/lib/t/regression/26command_line.t
Log:
* add a test that we can set 0 as vvalue of a CF
Modified: rt/branches/3.6-RELEASE/lib/t/regression/26command_line.t
==============================================================================
--- rt/branches/3.6-RELEASE/lib/t/regression/26command_line.t (original)
+++ rt/branches/3.6-RELEASE/lib/t/regression/26command_line.t Fri Apr 4 01:25:09 2008
@@ -3,7 +3,7 @@
use strict;
use Test::Expect;
#use Test::More qw/no_plan/;
-use Test::More tests => 218;
+use Test::More tests => 222;
use RT;
RT::LoadConfig();
@@ -155,6 +155,11 @@
expect_like(qr/Ticket $ticket_id updated/, 'Changed cf');
expect_send("show ticket/$ticket_id -f CF-myCF$$", 'Checking new value');
expect_like(qr/CF-myCF$$: VALUE/i, 'Verified change');
+# Test setting 0 as value of the custom field
+expect_send("edit ticket/$ticket_id set 'CF-myCF$$=0' ", 'Changing CF...');
+expect_like(qr/Ticket $ticket_id updated/, 'Changed cf');
+expect_send("show ticket/$ticket_id -f CF-myCF$$", 'Checking new value');
+expect_like(qr/CF-myCF$$: 0/i, 'Verified change');
# Test reading and setting custom fields with spaces
expect_send("show ticket/$ticket_id -f 'CF-my CF$$'", 'Checking initial value');
expect_like(qr/my CF$$:/i, 'Verified change');
More information about the Rt-commit
mailing list