summaryrefslogtreecommitdiff
path: root/test/date
diff options
context:
space:
mode:
authorzverok <zverok.offline@gmail.com>2019-08-11 13:50:20 +0300
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-10-24 18:39:04 +0900
commit913807bd6ce98d3d362d27caef4f5e2aef0e5d79 (patch)
treea120385f2f05fa45f7b83934a006b55ec515c085 /test/date
parent2e37c1960a0b84a9018dc0202a36daf4e692ed46 (diff)
[ruby/date] Simplify #inspect
https://github.com/ruby/date/commit/af01edd7d8
Diffstat (limited to 'test/date')
-rw-r--r--test/date/test_switch_hitter.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/date/test_switch_hitter.rb b/test/date/test_switch_hitter.rb
index bdf299e030..5c5a1bb0e6 100644
--- a/test/date/test_switch_hitter.rb
+++ b/test/date/test_switch_hitter.rb
@@ -282,8 +282,10 @@ class TestSH < Test::Unit::TestCase
def test_inspect
d = Date.new(2001, 2, 3)
assert_equal(Encoding::US_ASCII, d.inspect.encoding)
+ assert_equal('#<Date: 2001-02-03>', d.inspect)
d = DateTime.new(2001, 2, 3)
assert_equal(Encoding::US_ASCII, d.inspect.encoding)
+ assert_equal('#<DateTime: 2001-02-03T00:00:00+00:00>', d.inspect)
end
def test_strftime