aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_file.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb
index 2d8c86251f..2767263e07 100644
--- a/test/ruby/test_file.rb
+++ b/test/ruby/test_file.rb
@@ -400,6 +400,11 @@ class TestFile < Test::Unit::TestCase
assert_kind_of String, st.fstypename
rescue NotImplementedError
end
+ s = st.inspect
+ assert_match /\A\#<File::Statfs\b.*>\z/, s
+ assert_match /\bbsize=\d+\b/, s
+ assert_match /\bblocks=(?:\d+[,>\/])+\b/, s
+ assert_match /\bfiles=(?:\d+[,>\/])+\b/, s
end
end
end