Kouhei Sutou
null+****@clear*****
Tue Apr 9 18:24:57 JST 2013
Kouhei Sutou 2013-04-09 18:24:57 +0900 (Tue, 09 Apr 2013) New Revision: 840eb6b87f5731c80ffebcf4870463328f0b09cc https://github.com/groonga/fluent-plugin-droonga/commit/840eb6b87f5731c80ffebcf4870463328f0b09cc Message: test: add a test for count output Modified files: test/plugin/test_handler_search.rb Modified: test/plugin/test_handler_search.rb (+20 -0) =================================================================== --- test/plugin/test_handler_search.rb 2013-04-09 18:20:25 +0900 (6556f20) +++ test/plugin/test_handler_search.rb 2013-04-09 18:24:57 +0900 (c7bed46) @@ -92,4 +92,24 @@ class SearchHandlerTest < Test::Unit::TestCase }) end end + + class OutputTest < self + def test_count + assert_search({ + "sections-result" => { + "count" => 9, + }, + }, + { + "queries" => { + "sections-result" => { + "source" => "Sections", + "output" => { + "count" => true, + }, + }, + }, + }) + end + end end -------------- next part -------------- HTML����������������������������...Download