[Groonga-commit] droonga/fluent-plugin-droonga at f574795 [master] Define options before ".new()", to fold long lines

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Sep 12 13:49:51 JST 2013


YUKI Hiroshi	2013-09-12 13:49:51 +0900 (Thu, 12 Sep 2013)

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

  Message:
    Define options before ".new()", to fold long lines

  Modified files:
    test/test_groonga_command_converter.rb

  Modified: test/test_groonga_command_converter.rb (+8 -5)
===================================================================
--- test/test_groonga_command_converter.rb    2013-09-12 13:48:19 +0900 (242e250)
+++ test/test_groonga_command_converter.rb    2013-09-12 13:49:51 +0900 (ca7d1d7)
@@ -17,11 +17,14 @@ require "droonga/groonga_command_converter"
 
 class GroongaCommandConverterTest < Test::Unit::TestCase
   def setup
-    @converter = Droonga::GroongaCommandConverter.new(:id => "test",
-                                                      :date => date,
-                                                      :reply_to => reply_to,
-                                                      :status_code => status_code,
-                                                      :dataset => dataset)
+    options = {
+      :id => "test",
+      :date => date,
+      :reply_to => reply_to,
+      :status_code => status_code,
+      :dataset => dataset,
+    }
+    @converter = Droonga::GroongaCommandConverter.new(options)
   end
 
   def test_table_create
-------------- next part --------------
HTML����������������������������...
Download 



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