[Groonga-commit] droonga/fluent-plugin-droonga at db36aba [master] Test: use stub emit for tests of handler_search

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Nov 20 14:31:05 JST 2013


YUKI Hiroshi	2013-11-20 14:31:05 +0900 (Wed, 20 Nov 2013)

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

  Message:
    Test: use stub emit for tests of handler_search

  Modified files:
    test/plugin/handler/test_handler_search.rb

  Modified: test/plugin/handler/test_handler_search.rb (+2 -1)
===================================================================
--- test/plugin/handler/test_handler_search.rb    2013-11-20 14:28:11 +0900 (bf00aba)
+++ test/plugin/handler/test_handler_search.rb    2013-11-20 14:31:05 +0900 (5b989e7)
@@ -35,6 +35,7 @@ class SearchHandlerTest < Test::Unit::TestCase
   def setup_handler
     @worker = StubWorker.new
     @handler = Droonga::SearchHandler.new(@worker)
+    setup_stub_emit(@handler)
   end
 
   def teardown_handler
@@ -43,7 +44,7 @@ class SearchHandlerTest < Test::Unit::TestCase
 
   def search(request)
     @handler.search(request)
-    normalize_result_set(@worker.body)
+    normalize_result_set(last_emitted)
   end
 
   def normalize_result_set(result_set)
-------------- next part --------------
HTML����������������������������...
Download 



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