diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2015-07-26 15:41:26 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2015-07-26 15:41:26 -0700 |
| commit | 9aee669886202be7035e6c6049fc71bc99dd3013 (patch) | |
| tree | 2fd5bf6de74f3d99270587ffb1833e4188a6373d /rt/t/customfields/ip.t | |
| parent | ac20214d38d9af00430423f147b5a0e50751b050 (diff) | |
| parent | 1add633372bdca3cc7163c2ce48363fed3984437 (diff) | |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'rt/t/customfields/ip.t')
| -rw-r--r-- | rt/t/customfields/ip.t | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rt/t/customfields/ip.t b/rt/t/customfields/ip.t index 37afcb71d..35a245c5e 100644 --- a/rt/t/customfields/ip.t +++ b/rt/t/customfields/ip.t @@ -26,7 +26,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; @@ -269,8 +269,8 @@ diag "create a ticket with an IP of 10.0.0.1 and search for doesn't match '10.0. $tickets->FromSQL("id=$id AND CF.{IP} NOT LIKE '10.0.0.'"); } [qr/not a valid IPAddress/], "caught warning about valid IP address"; - SKIP: { - skip "partical ip parse causes ambiguity", 1; + TODO: { + local $TODO = "partial ip parse causes ambiguity"; is( $tickets->Count, 0, "should not have found the ticket" ); } } @@ -281,8 +281,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' ); } |
