diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-21 03:14:39 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-21 03:14:39 +0000 |
commit | c7f66bdef98b74128cc23ce1fd1dcd3d329677fa (patch) | |
tree | 5520bd53883ec7508136095904d4358019749f62 /test | |
parent | 7c52d5f8cf2987ceddf8e70ae99c11ac22a0a056 (diff) |
* 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
Diffstat (limited to 'test')
-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 } |