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:
parent
bf92aa8b16
commit
dbe8aba7f9
5 changed files with 34 additions and 26 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue