From ac5f6e0a60ed62a8754e11d6adc4f32a610e72b9 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 7 May 2004 23:22:28 +0000 Subject: add a test for Kernel.open(Pathname.new(...)) { ... }. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/pathname.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/pathname.rb') 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 -- cgit v1.2.3