[Groonga-commit] groonga/groonga-query-log at b2bd6b2 [master] test: fix variable name

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jul 23 13:40:23 JST 2014


Kouhei Sutou	2014-07-23 13:40:23 +0900 (Wed, 23 Jul 2014)

  New Revision: b2bd6b254e42ecf7cd091b6948ef79f504bbe4cb
  https://github.com/groonga/groonga-query-log/commit/b2bd6b254e42ecf7cd091b6948ef79f504bbe4cb

  Message:
    test: fix variable name
    
    JSON is a string format. So json_string is strange.

  Modified files:
    test/test-analyzer.rb

  Modified: test/test-analyzer.rb (+3 -4)
===================================================================
--- test/test-analyzer.rb    2014-07-23 13:39:56 +0900 (f0495f8)
+++ test/test-analyzer.rb    2014-07-23 13:40:23 +0900 (76544aa)
@@ -95,10 +95,9 @@ class AnalyzerTest < Test::Unit::TestCase
     end
   end
 
-  def normalize_json(json_string)
-    json_string = json_string.gsub(/(\"start_time\"):\d+/,
-                                   "\\1:START_TIME")
-    json_string.gsub(/(\"last_time\"):\d+/, "\\1:LAST_TIME")
+  def normalize_json(json)
+    json = json.gsub(/(\"start_time\"):\d+/, "\\1:START_TIME")
+    json.gsub(/(\"last_time\"):\d+/, "\\1:LAST_TIME")
   end
 
   def expected_analyzed_query(file_name)
-------------- next part --------------
HTML����������������������������...
Download 



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