Kouhei Sutou
null+****@clear*****
Sat Jan 31 14:08:07 JST 2015
Kouhei Sutou 2015-01-31 14:08:07 +0900 (Sat, 31 Jan 2015) New Revision: b5587a7f1c864ca12ef04b695a3f1d3b12f77785 https://github.com/ranguba/rroonga/commit/b5587a7f1c864ca12ef04b695a3f1d3b12f77785 Message: test: restore the original TZ Modified files: test/test-record.rb Modified: test/test-record.rb (+11 -2) =================================================================== --- test/test-record.rb 2015-01-31 14:07:17 +0900 (e2c7874) +++ test/test-record.rb 2015-01-31 14:08:07 +0900 (965f995) @@ -619,6 +619,11 @@ class RecordTest < Test::Unit::TestCase def setup setup_database setup_schema + setup_tz + end + + def teardown + teardown_tz end def setup_schema @@ -633,8 +638,12 @@ class RecordTest < Test::Unit::TestCase @bookmarks = Groonga["Bookmarks"] end - def teardown - ENV["TZ"] = "Japan" + def setup_tz + @tz_original = ENV["TZ"] + end + + def teardown_tz + ENV["TZ"] = @tz_original end def test_to_json -------------- next part -------------- HTML����������������������������... 下载