File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def test_passwd
21
21
assert_instance_of ( String , s . shell )
22
22
assert_kind_of ( Integer , s . change ) if s . respond_to? ( :change )
23
23
assert_kind_of ( Integer , s . quota ) if s . respond_to? ( :quota )
24
- assert ( s . age . is_a? ( Integer ) || s . age . is_a? ( String ) ) if s . respond_to? ( :age )
24
+ assert ( s . age . is_a? ( Integer ) || s . age . is_a? ( String ) , s . age ) if s . respond_to? ( :age )
25
25
assert_instance_of ( String , s . uclass ) if s . respond_to? ( :uclass )
26
26
assert_instance_of ( String , s . comment ) if s . respond_to? ( :comment )
27
27
assert_kind_of ( Integer , s . expire ) if s . respond_to? ( :expire )
@@ -160,7 +160,7 @@ def test_pathconf
160
160
end
161
161
IO . pipe { |r , w |
162
162
val = w . pathconf ( Etc ::PC_PIPE_BUF )
163
- assert ( val . nil? || val . kind_of? ( Integer ) )
163
+ assert_kind_of ( Integer , val ) if val
164
164
}
165
165
end if defined? ( Etc ::PC_PIPE_BUF )
166
166
You can’t perform that action at this time.
0 commit comments