[Groonga-commit] droonga/fluent-plugin-droonga at 064b418 [master] Define effective_date for dummy catalog.json

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Feb 12 17:02:24 JST 2014


YUKI Hiroshi	2014-02-12 17:02:24 +0900 (Wed, 12 Feb 2014)

  New Revision: 064b41830bbfc7db71c6e6a7fced832a10a2676d
  https://github.com/droonga/fluent-plugin-droonga/commit/064b41830bbfc7db71c6e6a7fced832a10a2676d

  Message:
    Define effective_date for dummy catalog.json

  Modified files:
    test/unit/catalog/test_version1.rb

  Modified: test/unit/catalog/test_version1.rb (+4 -5)
===================================================================
--- test/unit/catalog/test_version1.rb    2014-02-12 17:00:34 +0900 (7fcf1e6)
+++ test/unit/catalog/test_version1.rb    2014-02-12 17:02:24 +0900 (fd36cd7)
@@ -19,6 +19,7 @@ class CatalogTest < Test::Unit::TestCase
   private
   def minimum_data
     {
+      "effective_date": "2013-09-01T00:00:00Z",
       "zones" => [],
       "farms" => {},
       "datasets" => {},
@@ -93,7 +94,7 @@ class CatalogTest < Test::Unit::TestCase
 
     class PluginsTest < self
       def setup
-        @data = {
+        @data = minimum_data.merge({
           "zones" => [farm_name],
           "farms" => {
             farm_name => {
@@ -118,7 +119,7 @@ class CatalogTest < Test::Unit::TestCase
               },
             },
           },
-        }
+        })
       end
 
       def farm_name
@@ -164,9 +165,7 @@ class CatalogTest < Test::Unit::TestCase
 
         private
         def total_weight(dataset)
-          catalog = create_catalog({ "zones" => [],
-                                     "farms" => {},
-                                     "datasets" => {} },
+          catalog = create_catalog(minimum_data,
                                    "base-path")
           catalog.send(:compute_total_weight, dataset)
         end
-------------- next part --------------
HTML����������������������������...
Download 



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