diff options
Diffstat (limited to 'test/pathname/test_pathname.rb')
-rw-r--r-- | test/pathname/test_pathname.rb | 6 |
1 files changed, 1 insertions, 5 deletions
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 } |