aboutsummaryrefslogtreecommitdiffstats
path: root/test/date/test_date_new.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-08 11:15:23 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-08 11:15:23 +0000
commitbf92aa8b16f938c888197edc70a5bd97a39581bc (patch)
tree7065c9f6bb2a53e3f3c40752598666903c753a0d /test/date/test_date_new.rb
parent19f52b87408263faba97f91404d84d4ef707bab6 (diff)
downloadruby-bf92aa8b16f938c888197edc70a5bd97a39581bc.tar.gz
Revert r31478.
In CRuby's test-all, skip is for something to be fixed. When some external library is missing, it should silently return; don't flood the test result with meaningless messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/date/test_date_new.rb')
-rw-r--r--test/date/test_date_new.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/date/test_date_new.rb b/test/date/test_date_new.rb
index 26fdd39544..da63c2248e 100644
--- a/test/date/test_date_new.rb
+++ b/test/date/test_date_new.rb
@@ -211,7 +211,7 @@ class TestDateNew < Test::Unit::TestCase
end
def test_weeknum
- skip 'not provided'unless Date.respond_to?(:weeknum, true)
+ skip unless Date.respond_to?(:weeknum, true)
d = Date.__send__(:weeknum)
dt = DateTime.__send__(:weeknum)
assert_equal([-4712, 1, 1], [d.year, d.mon, d.mday])
@@ -234,7 +234,7 @@ class TestDateNew < Test::Unit::TestCase
end
def test_nth_kday
- skip 'not provided'unless Date.respond_to?(:nth_kday, true)
+ skip unless Date.respond_to?(:nth_kday, true)
d = Date.__send__(:nth_kday)
dt = DateTime.__send__(:nth_kday)
assert_equal([-4712, 1, 1], [d.year, d.mon, d.mday])