summaryrefslogtreecommitdiff
path: root/test/pathname/test_pathname.rb
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
commitc7f66bdef98b74128cc23ce1fd1dcd3d329677fa (patch)
tree5520bd53883ec7508136095904d4358019749f62 /test/pathname/test_pathname.rb
parent7c52d5f8cf2987ceddf8e70ae99c11ac22a0a056 (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/pathname/test_pathname.rb')
-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 a3f2b97bcc6..94ddbcd9cf4 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
}