summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2011-02-08 15:48:56 +0100
committerfranck cuny <franck@lumberjaph.net>2011-02-08 15:48:56 +0100
commitd190fc2612ba50bc32cc42fd3a188a89ac3aa6bf (patch)
tree43f6dfaa73c21894f2993f186a74859ff6f3584f
parentswitch to dzilla (diff)
downloadwebservice-google-suggest-d190fc2612ba50bc32cc42fd3a188a89ac3aa6bf.tar.gz
fix tests
-rw-r--r--t/01_suggest.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/01_suggest.t b/t/01_suggest.t
index 5660d24..24c24a1 100644
--- a/t/01_suggest.t
+++ b/t/01_suggest.t
@@ -9,6 +9,6 @@ isa_ok($suggest->ua, "LWP::UserAgent", "ua() retuens LWP");
 
 my @data = $suggest->complete("google");
 is($data[0]->{query}, "google maps", "google completes to google maps");
-ok($data[0]->{results}, "google has more than 0 results");
+is($data[0]->{rank}, 0, "google is first");
 is_deeply( [ $suggest->complete("udfg67a") ], [ ], "empty list" );