X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Ft%2Fcustomfields%2Fiprange.t;h=2a323a352a6731e83fdedf8f57fc0d645f55cf86;hb=1bc76eeede2fcdea26a9e634409445626f53cdc9;hp=118d23c885559a92d583f51a700d0782a342855b;hpb=f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7;p=freeside.git diff --git a/rt/t/customfields/iprange.t b/rt/t/customfields/iprange.t index 118d23c88..2a323a352 100644 --- a/rt/t/customfields/iprange.t +++ b/rt/t/customfields/iprange.t @@ -1,4 +1,3 @@ -#!/usr/bin/perl use strict; use warnings; @@ -22,7 +21,7 @@ my $cf; diag "load and check basic properties of the IP CF" if $ENV{'TEST_VERBOSE'}; { my $cfs = RT::CustomFields->new( $RT::SystemUser ); - $cfs->Limit( FIELD => 'Name', VALUE => 'IP' ); + $cfs->Limit( FIELD => 'Name', VALUE => 'IP', CASESENSITIVE => 0 ); is( $cfs->Count, 1, "found one CF with name 'IP'" ); $cf = $cfs->First; @@ -198,7 +197,7 @@ diag "check that we parse correct IPs only" if $ENV{'TEST_VERBOSE'}; } ); - $agent->content_like( qr/can not be parsed as an IP address range/, 'ticket fails to create' ); + $agent->content_like( qr/is not a valid IP address range/, 'ticket fails to create' ); } } @@ -462,8 +461,8 @@ diag "test the operators in search page" if $ENV{'TEST_VERBOSE'}; $agent->get_ok( $baseurl . "/Search/Build.html?Query=Queue='General'" ); $agent->content_contains('CF.{IP}', 'got CF.{IP}'); my $form = $agent->form_name('BuildQuery'); - my $op = $form->find_input("'CF.{IP}'Op"); - ok( $op, "found 'CF.{IP}'Op" ); + my $op = $form->find_input("CF.{IP}Op"); + ok( $op, "found CF.{IP}Op" ); is_deeply( [ $op->possible_values ], [ '=', '!=', '<', '>' ], 'op values' ); }