[Rt-commit] rt branch, 4.0/simple-search-owner, updated. rt-4.0.6-128-gca698c8

Alex Vandiver alexmv at bestpractical.com
Thu Jun 14 16:47:16 EDT 2012


The branch, 4.0/simple-search-owner has been updated
       via  ca698c835756f836d383320850be6232d762b9e6 (commit)
      from  c50233491d00088359df833b4088dc06379093dc (commit)

Summary of changes:
 t/web/googleish_search.t |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit ca698c835756f836d383320850be6232d762b9e6
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Thu Jun 14 15:41:55 2012 -0400

    Add a test for owner:email at address

diff --git a/t/web/googleish_search.t b/t/web/googleish_search.t
index e2a4e91..f4c8fa4 100644
--- a/t/web/googleish_search.t
+++ b/t/web/googleish_search.t
@@ -2,7 +2,8 @@
 use strict;
 use warnings;
 
-use RT::Test tests => 96, config => 'Set( %FullTextSearch, Enable => 1, Indexed => 0 );';
+use RT::Test tests => undef,
+    config => 'Set( %FullTextSearch, Enable => 1, Indexed => 0 );';
 my ($baseurl, $m) = RT::Test->started_ok;
 my $url = $m->rt_base_url;
 
@@ -57,6 +58,7 @@ ok $two_words_queue && $two_words_queue->id, 'loaded or created a queue';
     is $parser->QueryToSQL("'me'"), "$active AND ( Subject LIKE 'me' )", "correct parsing";
     is $parser->QueryToSQL("owner:me"), "( Owner.id = '__CurrentUser__' ) AND $active", "correct parsing";
     is $parser->QueryToSQL("owner:'me'"), "( Owner = 'me' ) AND $active", "correct parsing";
+    is $parser->QueryToSQL('owner:root at localhost'), "( Owner.EmailAddress = 'root\@localhost' ) AND $active", "Email address as owner";
 
     is $parser->QueryToSQL("resolved me"), "( Owner.id = '__CurrentUser__' ) AND ( Status = 'resolved' )", "correct parsing";
     is $parser->QueryToSQL("resolved active me"), "( Owner.id = '__CurrentUser__' ) AND ( Status = 'resolved' OR Status = 'new' OR Status = 'open' OR Status = 'stalled' )", "correct parsing";
@@ -217,3 +219,5 @@ for my $quote ( q{'}, q{"} ) {
     }
 }
 
+undef $m;
+done_testing;

-----------------------------------------------------------------------


More information about the Rt-commit mailing list