diff options
Diffstat (limited to 'lib/pathname.rb')
-rw-r--r-- | lib/pathname.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pathname.rb b/lib/pathname.rb index 423b8a0689..20cff4f097 100644 --- a/lib/pathname.rb +++ b/lib/pathname.rb @@ -1182,5 +1182,9 @@ if $0 == __FILE__ assert_not_same(str, obj.to_s) assert_not_same(obj.to_s, obj.to_s) end + + def test_kernel_open + assert_equal(1, Kernel.open(Pathname.new("/dev/null")) {|f| 1 }) + end end end |