YUKI Hiroshi
null+****@clear*****
Tue Aug 26 18:53:08 JST 2014
YUKI Hiroshi 2014-08-26 18:53:08 +0900 (Tue, 26 Aug 2014) New Revision: 60bf303d21daebeb2e36d466523cccf8c609a0c8 https://github.com/long-long-float/droonga-engine/commit/60bf303d21daebeb2e36d466523cccf8c609a0c8 Message: Define the list of default plugins as a utility method Modified files: test/unit/test_catalog_generator.rb Modified: test/unit/test_catalog_generator.rb (+7 -3) =================================================================== --- test/unit/test_catalog_generator.rb 2014-08-26 18:51:19 +0900 (1e97e50) +++ test/unit/test_catalog_generator.rb 2014-08-26 18:53:08 +0900 (a770be0) @@ -40,6 +40,10 @@ class CatalogGeneratorTest < Test::Unit::TestCase end end + def default_plugins + ["groonga", "search", "crud", "dump", "system", "catalog"] + end + def test_default catalog = { "version" => 2, @@ -55,7 +59,7 @@ class CatalogGeneratorTest < Test::Unit::TestCase @generator.add_dataset("Droonga", {}) dataset = { "nWorkers" => 4, - "plugins" => ["groonga", "search", "crud", "dump", "system", "catalog"], + "plugins" => default_plugins, "schema" => {}, "replicas" => [ { @@ -94,7 +98,7 @@ class CatalogGeneratorTest < Test::Unit::TestCase def test_replicas dataset = { "nWorkers" => 4, - "plugins" => ["groonga", "search", "crud", "dump", "system", "catalog"], + "plugins" => default_plugins, "schema" => [], "replicas" => [ { @@ -141,7 +145,7 @@ class CatalogGeneratorTest < Test::Unit::TestCase @generator.add_dataset("Droonga", :replicas => replicas) dataset = { "nWorkers" => 4, - "plugins" => ["groonga", "search", "crud", "dump", "system", "catalog"], + "plugins" => default_plugins, "schema" => {}, "replicas" => replicas, } -------------- next part -------------- HTML����������������������������... Download