[Groonga-commit] droonga/fluent-plugin-droonga at 1e96a88 [master] test: follow Engine's API change

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Nov 25 13:07:20 JST 2013


Kouhei Sutou	2013-11-25 13:07:20 +0900 (Mon, 25 Nov 2013)

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

  Message:
    test: follow Engine's API change

  Modified files:
    test/unit/test_output.rb

  Modified: test/unit/test_output.rb (+5 -5)
===================================================================
--- test/unit/test_output.rb    2013-11-25 13:00:07 +0900 (231252e)
+++ test/unit/test_output.rb    2013-11-25 13:07:20 +0900 (97ae5fa)
@@ -17,14 +17,14 @@ require "fluent/plugin/out_droonga"
 
 module OutputStub
   class Engine
-    attr_reader :processed_record
+    attr_reader :processed_envelope
     def initialize(response)
       @response = response
-      @processed_record = nil
+      @processed_envelope = nil
     end
 
-    def emit(tag, time, record)
-      @processed_record = record
+    def process(envelope)
+      @processed_envelope = envelope
       @response
     end
 
@@ -80,7 +80,7 @@ class OutputTest < Test::Unit::TestCase
     driver.run do
       driver.emit(request, time)
     end
-    assert_equal(request, @output.engine.processed_record)
+    assert_equal(request, @output.engine.processed_envelope)
   end
 
   private
-------------- next part --------------
HTML����������������������������...
Download 



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