[Groonga-commit] ranguba/rroonga at 7e2e360 [master] test: add time zone check for debug

Back to archive index

cosmo0920 null+****@clear*****
Tue Sep 23 03:08:26 JST 2014


cosmo0920	2014-09-23 03:08:26 +0900 (Tue, 23 Sep 2014)

  New Revision: 7e2e3603fabbcd28ad54a744d105e6900c3664c4
  https://github.com/ranguba/rroonga/commit/7e2e3603fabbcd28ad54a744d105e6900c3664c4

  Message:
    test: add time zone check for debug

  Modified files:
    test/test-record.rb

  Modified: test/test-record.rb (+6 -0)
===================================================================
--- test/test-record.rb    2014-09-23 00:49:50 +0900 (ad27caf)
+++ test/test-record.rb    2014-09-23 03:08:26 +0900 (e47f832)
@@ -642,5 +642,11 @@ class RecordTest < Test::Unit::TestCase
       }.to_json
       assert_equal(expected, groonga.to_json)
     end
+
+    def test_time_zone
+      ENV["TZ"] = "Japan"
+      t = Time.new
+      assert_equal("JST", t.zone.to_s)
+    end
   end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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