summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-10-26 18:20:46 -0700
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-10-31 15:51:30 +0900
commit3895e548bd2d75cdf47cd247e84d6071247dd3b3 (patch)
treec15c6a812342006c0f48a3dd54b2907a15b4c186 /test
parentfce940aac722575a78cd4cbe5f86dd3f3b40d13c (diff)
[ruby/date] Revert "Simplify #inspect"
This reverts commit af01edd7d8575f544f647dbe8cde5b6ae535d459. Revert requested by Yui Naruse. https://github.com/ruby/date/commit/875d563557
Diffstat (limited to 'test')
-rw-r--r--test/date/test_switch_hitter.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/date/test_switch_hitter.rb b/test/date/test_switch_hitter.rb
index 5c5a1bb0e6..bdf299e030 100644
--- a/test/date/test_switch_hitter.rb
+++ b/test/date/test_switch_hitter.rb
@@ -282,10 +282,8 @@ 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