[Groonga-commit] ranguba/chupa-text at 0f21192 [master] Don't use ENV#to_h because Ruby 1.9 doesn't have it

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jan 6 00:13:40 JST 2014


Kouhei Sutou	2014-01-06 00:13:40 +0900 (Mon, 06 Jan 2014)

  New Revision: 0f21192fdfd10ebf1055012145390166a12e48e1
  https://github.com/ranguba/chupa-text/commit/0f21192fdfd10ebf1055012145390166a12e48e1

  Message:
    Don't use ENV#to_h because Ruby 1.9 doesn't have it

  Modified files:
    test/test-default-logger.rb

  Modified: test/test-default-logger.rb (+4 -1)
===================================================================
--- test/test-default-logger.rb    2014-01-06 00:11:35 +0900 (84a76ce)
+++ test/test-default-logger.rb    2014-01-06 00:13:40 +0900 (b0886c1)
@@ -16,7 +16,10 @@
 
 class TestDefaultLogger < Test::Unit::TestCase
   def setup
-    @env = ENV.to_h
+    @env = {}
+    ENV.each do |key, value|
+      @env[key] = value
+    end
   end
 
   def teardown
-------------- next part --------------
HTML����������������������������...
Download 



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