[Groonga-commit] groonga/groonga-query-log [master] test: use suitable name for intention of the test

Zurück zum Archiv-Index

Haruka Yoshihara null+****@clear*****
Thu Dec 13 18:00:46 JST 2012


Haruka Yoshihara	2012-12-13 18:00:46 +0900 (Thu, 13 Dec 2012)

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

  Log:
    test: use suitable name for intention of the test

  Modified files:
    test/test-analyzer.rb

  Modified: test/test-analyzer.rb (+4 -4)
===================================================================
--- test/test-analyzer.rb    2012-12-13 17:58:33 +0900 (50d92fa)
+++ test/test-analyzer.rb    2012-12-13 18:00:46 +0900 (12c7713)
@@ -33,11 +33,11 @@ class AnalyzerTest < Test::Unit::TestCase
   end
 
   data(:console => "console", :html => "html", :json => "json")
-  def test_output(output_type)
-    actual_result = run_analyzer("--reporter", output_type, @query_log_path)
-    actual_result = normalize_json(actual_result) if output_type == "json"
+  def test_reporter(reporter)
+    actual_result = run_analyzer("--reporter", reporter, @query_log_path)
+    actual_result = normalize_json(actual_result) if reporter == "json"
 
-    expected_result = expected_analyzed_query("output/#{output_type}.expected")
+    expected_result = expected_analyzed_query("output/#{reporter}.expected")
     assert_equal(expected_result, actual_result)
   end
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index