[Rt-commit] rt branch, 4.0/fulltext-search, updated. rt-4.0.0-194-g3507d83
Shawn Moore
sartak at bestpractical.com
Thu May 5 16:45:17 EDT 2011
The branch, 4.0/fulltext-search has been updated
via 3507d83cc474220b69066e876ceae0827fca9ebb (commit)
from 0c3013f00fe2af4ae8f517c964a6299f276bf618 (commit)
Summary of changes:
t/fts/indexed_pg.t | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 3507d83cc474220b69066e876ceae0827fca9ebb
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Thu May 5 16:45:05 2011 -0400
Tests to ensure we can return no tickets :)
diff --git a/t/fts/indexed_pg.t b/t/fts/indexed_pg.t
index 005362a..3192197 100644
--- a/t/fts/indexed_pg.t
+++ b/t/fts/indexed_pg.t
@@ -10,7 +10,7 @@ my ($major, $minor) = $RT::Handle->dbh->get_info(18) =~ /^0*(\d+)\.0*(\d+)/;
plan skip_all => "Need Pg 8.2 or higher; we have $major.$minor"
if "$major.$minor" < 8.2;
-plan tests => 15;
+plan tests => 19;
RT->Config->Set( FullTextSearch => Enable => 1, Indexed => 1, Column => 'ContentIndex', Table => 'Attachments' );
@@ -88,6 +88,10 @@ run_tests(
# make sure that Pg stemming works
"Content LIKE 'books'" => { $book->id => 1, $bars->id => 0 },
"Content LIKE 'bar'" => { $book->id => 0, $bars->id => 1 },
+
+ # no matches
+ "Content LIKE 'baby'" => { $book->id => 0, $bars->id => 0 },
+ "Content LIKE 'pubs'" => { $book->id => 0, $bars->id => 0 },
);
@tickets = ();
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list