summaryrefslogtreecommitdiff
path: root/test/etc
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-29 12:36:28 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-29 12:36:28 +0000
commit8da30b8928d70e7bf11291ca5fe256189b68a355 (patch)
tree50bbe01410e0b95b767b2ffcb1533f19eef3cba8 /test/etc
parent7e5be7e1314cde91c2c05702eff3da8083925172 (diff)
* test/etc/test_etc.rb (test_passwd): age field may be string under
some environments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/etc')
-rw-r--r--test/etc/test_etc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/etc/test_etc.rb b/test/etc/test_etc.rb
index 29e5f0b..6fc7c60 100644
--- a/test/etc/test_etc.rb
+++ b/test/etc/test_etc.rb
@@ -18,7 +18,7 @@ class TestEtc < Test::Unit::TestCase
assert_instance_of(String, s.shell)
assert_kind_of(Integer, s.change) if s.respond_to?(:change)
assert_kind_of(Integer, s.quota) if s.respond_to?(:quota)
- assert_kind_of(Integer, s.age) if s.respond_to?(:age)
+ assert(s.age.is_a?(Integer) || s.age.is_a?(String)) if s.respond_to?(:age)
assert_instance_of(String, s.uclass) if s.respond_to?(:uclass)
assert_instance_of(String, s.comment) if s.respond_to?(:comment)
assert_kind_of(Integer, s.expire) if s.respond_to?(:expire)