Yoji Shidara
null+****@clear*****
Tue Nov 19 11:05:35 JST 2013
Yoji Shidara 2013-11-19 11:05:35 +0900 (Tue, 19 Nov 2013) New Revision: bd55d1808f8e4bcef9a378976e2676edb8d2790e https://github.com/droonga/fluent-plugin-droonga/commit/bd55d1808f8e4bcef9a378976e2676edb8d2790e Message: test: Fix AdapterGroongaSelectTest Modified files: test/plugin/adapter/groonga/test_select.rb Modified: test/plugin/adapter/groonga/test_select.rb (+6 -6) =================================================================== --- test/plugin/adapter/groonga/test_select.rb 2013-11-13 14:01:37 +0900 (80d9010) +++ test/plugin/adapter/groonga/test_select.rb 2013-11-19 11:05:35 +0900 (bcf507c) @@ -29,7 +29,7 @@ class AdapterGroongaSelectTest < Test::Unit::TestCase expected_search_request = { "queries" => { - "EmptyTable" => { + "EmptyTable_result" => { "source" => "EmptyTable", "output" => { "elements" => [ @@ -62,7 +62,7 @@ class AdapterGroongaSelectTest < Test::Unit::TestCase expected_search_request = { "queries" => { - "EmptyTable" => { + "EmptyTable_result" => { "source" => "EmptyTable", "output" => { "elements" => [ @@ -106,7 +106,7 @@ class AdapterGroongaSelectTest < Test::Unit::TestCase expected_search_request = { "queries" => { - "EmptyTable" => { + "EmptyTable_result" => { "source" => "EmptyTable", "condition"=> { "query" => "QueryTest", @@ -132,11 +132,11 @@ class AdapterGroongaSelectTest < Test::Unit::TestCase end def test_single_column - assert_matchTo(["_key"], "_key") + assert_matchTo(["_key"], ["_key"]) end def test_multiple_columns - assert_matchTo(["_key", "content"], "_key || content") + assert_matchTo(["_key", "content"], ["_key", "content"]) end end end @@ -163,7 +163,7 @@ class AdapterGroongaSelectTest < Test::Unit::TestCase start_time_in_unix_time = Time.parse(start_time).to_f headers = [["_id","UInt32"]] expected_select_response = [[status_code, start_time_in_unix_time, elapsed_time], - [[[count], headers]]] + [[[count], headers, []]]] assert_equal(expected_select_response, convert(search_response)) end -------------- next part -------------- HTML����������������������������...Download