aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-08 08:46:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-08 08:46:50 +0000
commit9bf6d4721ca1d051298b9206fa94d3b457f150c5 (patch)
treedc2235cbb3f7e1c2f601e747adf72f00475fa59a /test
parentb1328ea68547a5533f6129cdea7094f110d766f4 (diff)
downloadruby-9bf6d4721ca1d051298b9206fa94d3b457f150c5.tar.gz
Removed redundant suffix `_with_timezone`
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_time_tz.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_time_tz.rb b/test/ruby/test_time_tz.rb
index 46bbc8433b..fdea7a8e0f 100644
--- a/test/ruby/test_time_tz.rb
+++ b/test/ruby/test_time_tz.rb
@@ -520,24 +520,24 @@ class TestTimeTZ::WithTZ < Test::Unit::TestCase
"JST"
end
- def test_new_with_timezone
+ def test_new
t = Time.new(2018, 9, 1, 12, 0, 0, tz)
assert_equal([2018, 9, 1, 12, 0, 0, tz], [t.year, t.mon, t.mday, t.hour, t.min, t.sec, t.zone])
assert_equal(Time.utc(2018, 9, 1, 3, 0, 0).to_i, t.to_i)
end
- def test_getlocal_with_timezone
+ def test_getlocal
t = Time.utc(2018, 9, 1, 12, 0, 0).getlocal(tz)
assert_equal([2018, 9, 1, 21, 0, 0, tz], [t.year, t.mon, t.mday, t.hour, t.min, t.sec, t.zone])
assert_equal(Time.utc(2018, 9, 1, 12, 0, 0), t)
end
- def test_strftime_with_timezone
+ def test_strftime
t = Time.new(2018, 9, 1, 12, 0, 0, tz)
assert_equal("+0900 #{abbr}", t.strftime("%z %Z"))
end
- def test_plus_with_timezone
+ def test_plus
t = Time.new(2018, 9, 1, 12, 0, 0, tz) + 4000
assert_equal([2018, 9, 1, 13, 6, 40, tz], [t.year, t.mon, t.mday, t.hour, t.min, t.sec, t.zone])
assert_equal(Time.utc(2018, 9, 1, 4, 6, 40), t)