[Groonga-commit] droonga/drntest at 47bdd71 [master] Use Pathname methods

Back to archive index

Yoji Shidara null+****@clear*****
Thu Sep 19 12:55:29 JST 2013


Yoji Shidara	2013-09-19 12:55:29 +0900 (Thu, 19 Sep 2013)

  New Revision: 47bdd71ee28821ee59ab0593e55d0e442fa2f7bd
  https://github.com/droonga/drntest/commit/47bdd71ee28821ee59ab0593e55d0e442fa2f7bd

  Message:
    Use Pathname methods

  Modified files:
    lib/drntest/test-runner.rb

  Modified: lib/drntest/test-runner.rb (+2 -2)
===================================================================
--- lib/drntest/test-runner.rb    2013-09-19 12:51:55 +0900 (f62801e)
+++ lib/drntest/test-runner.rb    2013-09-19 12:55:29 +0900 (9a8323f)
@@ -25,8 +25,8 @@ module Drntest
       end
       actual = normalize_result(actual)
 
-      if File.exist?(expected_path)
-        expected = JSON.parse(File.read(expected_path))
+      if expected_path.exist?
+        expected = JSON.parse(expected_path.read)
         expected = normalize_result(expected)
         if expected == actual
           puts "PASS"
-------------- next part --------------
HTML����������������������������...
Download 



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