1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/date, test/rdoc: exclude tests dependent on unbundled libraries.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-02-22 09:34:59 +00:00
parent 9e4ddb8f18
commit b67bc8d722
5 changed files with 6 additions and 20 deletions

View file

@ -202,7 +202,6 @@ class TestDateNew < Test::Unit::TestCase
end
def test_weeknum
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])
@ -222,10 +221,9 @@ class TestDateNew < Test::Unit::TestCase
assert_raise(ArgumentError) do
Date.__send__(:weeknum, 1999,-53,-1, 0)
end
end
end if Date.respond_to?(:weeknum, true)
def test_nth_kday
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])
@ -245,7 +243,7 @@ class TestDateNew < Test::Unit::TestCase
assert_raise(ArgumentError) do
Date.__send__(:nth_kday, 2006,5, -5,0)
end
end
end if Date.respond_to?(:nth_kday, true)
def test_today
z = Time.now