Skip to content

Commit

Permalink
test: make setup and teardown close
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 31, 2015
1 parent 54e631a commit 326da78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test-record.rb
Expand Up @@ -633,6 +633,10 @@ def setup_schema
@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")
Expand Down Expand Up @@ -673,9 +677,5 @@ def test_to_json_with_leap_second
}.to_json
assert_equal(expected, groonga.to_json)
end

def teardown
ENV["TZ"] = "Japan"
end
end
end

0 comments on commit 326da78

Please sign in to comment.