Skip to content

Commit

Permalink
Fix the to_hash test to run in US/Pacific time
Browse files Browse the repository at this point in the history
  • Loading branch information
halorgium committed Apr 24, 2008
1 parent 2d3acf9 commit cec36f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_commit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ def test_inspect
# to_hash

def test_to_hash
old_tz, ENV["TZ"] = ENV["TZ"], "US/Pacific"
@c = Commit.create(@r, :id => '4c8124ffcf4039d292442eeccabdeca5af5c5017')

expected = {
Expand All @@ -178,5 +179,7 @@ def test_to_hash
}

assert_equal expected, @c.to_hash
ensure
ENV["TZ"] = old_tz
end
end

0 comments on commit cec36f7

Please sign in to comment.