summaryrefslogtreecommitdiff
path: root/test/date/test_date_attr.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-22 09:34:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-22 09:34:59 +0000
commitb67bc8d722e9351b34e68ac77d397aead29961cc (patch)
tree445cb6c0eb544e31774419581ff0b8156ac8acb5 /test/date/test_date_attr.rb
parent9e4ddb8f18ea3e88ae93ff669deb2bd1c0a372b7 (diff)
* 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
Diffstat (limited to 'test/date/test_date_attr.rb')
-rw-r--r--test/date/test_date_attr.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/date/test_date_attr.rb b/test/date/test_date_attr.rb
index 88a54d7461..2f0246296d 100644
--- a/test/date/test_date_attr.rb
+++ b/test/date/test_date_attr.rb
@@ -96,7 +96,6 @@ 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))
@@ -107,6 +106,6 @@ class TestDateAttr < Test::Unit::TestCase
assert_equal(true, Date.new(2001,1,14).__send__(:nth_kday?, -3,0))
assert_equal(false, Date.new(2001,1,14).__send__(:nth_kday?, -4,0))
assert_equal(false, Date.new(2001,1,14).__send__(:nth_kday?, -5,0))
- end
+ end if Date.new.respond_to?(:nth_kday?, true)
end