summaryrefslogtreecommitdiffstats
path: root/test/pathname
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-21 03:14:39 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-21 03:14:39 +0000
commitfd2f2f1f975eaab0709d403b5ce3aad245f9ef0b (patch)
tree5520bd53883ec7508136095904d4358019749f62 /test/pathname
parent48c89a1e79d08b81830534de2e85a687147370d8 (diff)
downloadruby-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.rb6
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
}