From fd2f2f1f975eaab0709d403b5ce3aad245f9ef0b 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: http://svn.ruby-lang.org/repos/ruby/trunk@9726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/pathname/test_pathname.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'test/pathname') diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb index a3f2b97bc..94ddbcd9c 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