[Groonga-commit] groonga/groonga-query-log [master] Reduce scope

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Dec 13 18:06:45 JST 2012


Kouhei Sutou	2012-12-13 18:06:45 +0900 (Thu, 13 Dec 2012)

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

  Log:
    Reduce scope
    
    Output shuold not be accessable because it is used in only one method.

  Modified files:
    test/test-analyzer.rb

  Modified: test/test-analyzer.rb (+3 -3)
===================================================================
--- test/test-analyzer.rb    2012-12-13 18:02:45 +0900 (eeb347a)
+++ test/test-analyzer.rb    2012-12-13 18:06:45 +0900 (e39ef04)
@@ -48,10 +48,10 @@ class AnalyzerTest < Test::Unit::TestCase
 
   private
   def run_analyzer(*arguments)
-    @output = Tempfile.new("output.actual").path
-    arguments << "--output" << @output
+    output = Tempfile.new("output.actual").path
+    arguments << "--output" << output
     @analyzer.run(*arguments)
-    File.read(@output)
+    File.read(output)
   end
 
   def normalize_json(json_string)
-------------- next part --------------
HTML����������������������������...
Download 



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