Navigation Menu

Skip to content

Commit

Permalink
test: restore the original TZ
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 31, 2015
1 parent aaa65fb commit b5587a7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions test/test-record.rb
Expand Up @@ -619,6 +619,11 @@ class JSONTest < self
def setup
setup_database
setup_schema
setup_tz
end

def teardown
teardown_tz
end

def setup_schema
Expand All @@ -633,8 +638,12 @@ def setup_schema
@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
Expand Down

0 comments on commit b5587a7

Please sign in to comment.