[Groonga-commit] droonga/drntest at c5f2e52 [master] Fix argument

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Apr 24 15:33:45 JST 2014


Kouhei Sutou	2014-04-24 15:33:45 +0900 (Thu, 24 Apr 2014)

  New Revision: c5f2e52680f8af5e178ae3ae99ed59aab39fb4eb
  https://github.com/droonga/drntest/commit/c5f2e52680f8af5e178ae3ae99ed59aab39fb4eb

  Message:
    Fix argument
    
    normalize_..._body! should receive body object because the method name
    says it normalizes "body".

  Modified files:
    lib/drntest/response-normalizer.rb

  Modified: lib/drntest/response-normalizer.rb (+6 -4)
===================================================================
--- lib/drntest/response-normalizer.rb    2014-04-24 15:33:02 +0900 (58d0d5b)
+++ lib/drntest/response-normalizer.rb    2014-04-24 15:33:45 +0900 (82652c2)
@@ -103,14 +103,15 @@ module Drntest
 
       case @request["type"]
       when "table_list"
-        normalize_groonga_table_list_command_body!(body[0][1..-1])
+        normalize_groonga_table_list_command_body!(body)
       when "column_list"
-        normalize_groonga_column_list_command_body!(body[0][1..-1])
+        normalize_groonga_column_list_command_body!(body)
       end
     end
 
     TABLE_PATH_COLUMN_INDEX = 2
-    def normalize_groonga_table_list_command_body!(tables)
+    def normalize_groonga_table_list_command_body!(body)
+      tables = body[0][1..-1]
       return unless tables.is_a?(Array)
       tables.each do |table|
         if table[TABLE_PATH_COLUMN_INDEX].is_a?(String)
@@ -120,7 +121,8 @@ module Drntest
     end
 
     COLUMN_PATH_COLUMN_INDEX = 2
-    def normalize_groonga_column_list_command_body!(columns)
+    def normalize_groonga_column_list_command_body!(body)
+      columns = body[0][1..-1]
       return unless columns.is_a?(Array)
       columns.each do |column|
         if column[COLUMN_PATH_COLUMN_INDEX].is_a?(String)
-------------- next part --------------
HTML����������������������������...
Download 



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