[Groonga-commit] ranguba/rroonga at 326da78 [master] test: make setup and teardown close

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Jan 31 13:55:50 JST 2015


Kouhei Sutou	2015-01-31 13:55:50 +0900 (Sat, 31 Jan 2015)

  New Revision: 326da78e99ca56ccf55827ccb4ae53928ef21cb6
  https://github.com/ranguba/rroonga/commit/326da78e99ca56ccf55827ccb4ae53928ef21cb6

  Message:
    test: make setup and teardown close

  Modified files:
    test/test-record.rb

  Modified: test/test-record.rb (+4 -4)
===================================================================
--- test/test-record.rb    2015-01-31 13:53:49 +0900 (8717912)
+++ test/test-record.rb    2015-01-31 13:55:50 +0900 (e2c7874)
@@ -633,6 +633,10 @@ class RecordTest < Test::Unit::TestCase
       @bookmarks = Groonga["Bookmarks"]
     end
 
+    def teardown
+      ENV["TZ"] = "Japan"
+    end
+
     def test_to_json
       ENV["TZ"] = "Japan"
       created_at = Time.parse("2013-05-16T16:57:34+09:00")
@@ -673,9 +677,5 @@ class RecordTest < Test::Unit::TestCase
       }.to_json
       assert_equal(expected, groonga.to_json)
     end
-
-    def teardown
-      ENV["TZ"] = "Japan"
-    end
   end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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