From c7f66bdef98b74128cc23ce1fd1dcd3d329677fa Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 21 Dec 2005 03:14:39 +0000 Subject: * test/pathname/test_pathname.rb (test_kernel_open): use File.identical?. [ruby-talk:171804] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/pathname/test_pathname.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'test') diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb index a3f2b97bcc..94ddbcd9cf 100644 --- a/test/pathname/test_pathname.rb +++ b/test/pathname/test_pathname.rb @@ -450,12 +450,8 @@ class TestPathname < Test::Unit::TestCase def test_kernel_open count = 0 - stat1 = File.stat(__FILE__) result = Kernel.open(Pathname.new(__FILE__)) {|f| - stat2 = f.stat - assert_equal(stat1.dev, stat2.dev) - assert_equal(stat1.ino, stat2.ino) - assert_equal(stat1.size, stat2.size) + assert(File.identical?(__FILE__, f)) count += 1 2 } -- cgit v1.2.3