YUKI Hiroshi
null+****@clear*****
Fri May 9 12:20:10 JST 2014
YUKI Hiroshi 2014-05-09 12:20:10 +0900 (Fri, 09 May 2014) New Revision: 2c55290708b8a417d7596373acf6811487d07225 https://github.com/droonga/droonga-engine/commit/2c55290708b8a417d7596373acf6811487d07225 Message: Add test for Catalog::Version2#all_nodes Modified files: test/unit/catalog/test_version1.rb test/unit/catalog/test_version2.rb Modified: test/unit/catalog/test_version1.rb (+7 -5) =================================================================== --- test/unit/catalog/test_version1.rb 2014-05-09 12:17:43 +0900 (3de237f) +++ test/unit/catalog/test_version1.rb 2014-05-09 12:20:10 +0900 (3625010) @@ -61,11 +61,6 @@ class CatalogVersion1Test < Test::Unit::TestCase partitions) end - def test_all_nodes - assert_equal(["localhost:23003", "localhost:23004"], - @catalog.all_nodes) - end - def fixture_path(base_path) File.expand_path("../../fixtures/#{base_path}", __FILE__) end @@ -128,6 +123,13 @@ class CatalogVersion1Test < Test::Unit::TestCase end end + + class NodesTest < self + def test_all_nodes + assert_equal(["localhost:23003", "localhost:23004"], + @catalog.all_nodes) + end + end end class DataSetTest < self Modified: test/unit/catalog/test_version2.rb (+7 -0) =================================================================== --- test/unit/catalog/test_version2.rb 2014-05-09 12:17:43 +0900 (9ecf370) +++ test/unit/catalog/test_version2.rb 2014-05-09 12:20:10 +0900 (5799ece) @@ -120,5 +120,12 @@ class CatalogVersion2Test < Test::Unit::TestCase end end + + class NodesTest < self + def test_all_nodes + assert_equal(["localhost:23003", "localhost:23004"], + @catalog.all_nodes) + end + end end end -------------- next part -------------- HTML����������������������������...下載