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

* test/date/*.rb: reverted 31483.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tadf 2011-05-08 11:33:41 +00:00
parent bf92aa8b16
commit dbe8aba7f9
5 changed files with 34 additions and 26 deletions

View file

@ -96,7 +96,7 @@ class TestDateAttr < Test::Unit::TestCase
end
def test_nth_kday
skip unless Date.new.respond_to?(:nth_kday?, true)
skip 'not provided'unless Date.new.respond_to?(:nth_kday?, true)
assert_equal(false, Date.new(2001,1,14).__send__(:nth_kday?, 1,0))
assert_equal(true, Date.new(2001,1,14).__send__(:nth_kday?, 2,0))
assert_equal(false, Date.new(2001,1,14).__send__(:nth_kday?, 3,0))