Skip to content

Commit

Permalink
tests, add note about the usage of a specific timezone. Closes #17448.
Browse files Browse the repository at this point in the history
  • Loading branch information
senny committed Nov 5, 2014
1 parent 3dcd1b8 commit 768b4ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/test/core_ext/string_ext_test.rb
Expand Up @@ -414,7 +414,7 @@ def test_string_to_time_utc_offset
end

def test_partial_string_to_time
with_env_tz "Europe/Moscow" do
with_env_tz "Europe/Moscow" do # use timezone which does not observe DST.
now = Time.now
assert_equal Time.local(now.year, now.month, now.day, 23, 50), "23:50".to_time
assert_equal Time.utc(now.year, now.month, now.day, 23, 50), "23:50".to_time(:utc)
Expand Down

0 comments on commit 768b4ea

Please sign in to comment.