aboutsummaryrefslogtreecommitdiffstats
path: root/test/date/test_date_attr.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/date/test_date_attr.rb')
-rw-r--r--test/date/test_date_attr.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/date/test_date_attr.rb b/test/date/test_date_attr.rb
index 9224dc1340..88a54d7461 100644
--- a/test/date/test_date_attr.rb
+++ b/test/date/test_date_attr.rb
@@ -96,6 +96,7 @@ class TestDateAttr < Test::Unit::TestCase
end
def test_nth_kday
+ skip 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))