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 | fd2f2f1f975eaab0709d403b5ce3aad245f9ef0b (patch) | |
tree | 5520bd53883ec7508136095904d4358019749f62 /test/pathname | |
parent | 48c89a1e79d08b81830534de2e85a687147370d8 (diff) | |
download | ruby-fd2f2f1f975eaab0709d403b5ce3aad245f9ef0b.tar.gz ruby-fd2f2f1f975eaab0709d403b5ce3aad245f9ef0b.tar.xz ruby-fd2f2f1f975eaab0709d403b5ce3aad245f9ef0b.zip |
* 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
Diffstat (limited to 'test/pathname')
-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 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 } |