[Groonga-commit] groonga/gcs [master] Remove needless setup

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Aug 24 15:43:10 JST 2012


YUKI Hiroshi	2012-08-24 15:43:10 +0900 (Fri, 24 Aug 2012)

  New Revision: e031eaa4164ea8953f8767a803787e175864f0ac
  https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac

  Log:
    Remove needless setup

  Modified files:
    test/api-search.test.js

  Modified: test/api-search.test.js (+3 -5)
===================================================================
--- test/api-search.test.js    2012-08-24 15:39:53 +0900 (ce706d9)
+++ test/api-search.test.js    2012-08-24 15:43:10 +0900 (d717a56)
@@ -128,7 +128,8 @@ suite('Search API', function() {
 
     testSearch('/2011-02-01/search?q=Hongo&' +
                  'return-fields=address,description,name,age,product,unknown',
-               'should return field values siecified by return-fields',
+               'should return field values of result returnable fields ' +
+                 'in the list of return-fields',
                'search-companies-00000000000000000000000000.localhost',
       function() {
         domain.getIndexField('address').setResultEnabled(false).saveOptionsSync();
@@ -143,7 +144,7 @@ suite('Search API', function() {
             hit: [{
               id: 'id3',
               data: {
-                address: [], // "unreturnable" field should be empty!
+                address: [], // "unreturnable" field should be returned as an empty array!
                 description: [''],
                 name: ['ClearCode Inc.'],
                 age: [3],
@@ -165,9 +166,6 @@ suite('Search API', function() {
                  'return-fields=unknown1,unknown2',
                'should return blank "data" by return-fields with unexisting fields',
                'search-companies-00000000000000000000000000.localhost',
-      function() {
-        domain.getIndexField('address').setReturnEnabled(false).saveOptionsSync();
-      },
       function(response) {
         var expected = { // FIXME
           rank: '-text_relevance',
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index