aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-11-05 11:27:41 +0100
committerYves Senn <yves.senn@gmail.com>2014-11-05 11:28:25 +0100
commit768b4ea24de0080a29e5467cda0142f5de62c660 (patch)
tree14d586f59392e5762053531e33a6edd50f5a26f5
parent3dcd1b84dd35168e737b78c30fc11511edda2cd8 (diff)
downloadrails-768b4ea24de0080a29e5467cda0142f5de62c660.tar.gz
rails-768b4ea24de0080a29e5467cda0142f5de62c660.tar.bz2
rails-768b4ea24de0080a29e5467cda0142f5de62c660.zip
tests, add note about the usage of a specific timezone. Closes #17448.
-rw-r--r--activesupport/test/core_ext/string_ext_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/string_ext_test.rb b/activesupport/test/core_ext/string_ext_test.rb
index b97aa56aef..119e62369d 100644
--- a/activesupport/test/core_ext/string_ext_test.rb
+++ b/activesupport/test/core_ext/string_ext_test.rb
@@ -414,7 +414,7 @@ class StringConversionsTest < ActiveSupport::TestCase
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)