summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/etc/test_etc.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/etc/test_etc.rb b/test/etc/test_etc.rb
index dc0d5c0fd8..c2e3af6317 100644
--- a/test/etc/test_etc.rb
+++ b/test/etc/test_etc.rb
@@ -21,7 +21,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(s.age.is_a?(Integer) || s.age.is_a?(String)) if s.respond_to?(:age)
+ assert(s.age.is_a?(Integer) || s.age.is_a?(String), s.age) 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)
@@ -160,7 +160,7 @@ class TestEtc < Test::Unit::TestCase
end
IO.pipe {|r, w|
val = w.pathconf(Etc::PC_PIPE_BUF)
- assert(val.nil? || val.kind_of?(Integer))
+ assert_kind_of(Integer, val) if val
}
end if defined?(Etc::PC_PIPE_BUF)