--- test_pathname.rb.orig 2009-08-24 10:29:59.000000000 -0700
+++ test_pathname.rb 2009-08-24 10:34:56.411542807 -0700
@@ -6,7 +6,6 @@
# 'rake test_c' to test the C version.
##############################################################################
require 'rubygems'
-gem 'test-unit'
require 'test/unit'
require 'pathname2'
@@ -16,12 +15,10 @@
class MyPathname < Pathname; end
class TC_Pathname < Test::Unit::TestCase
- def self.startup
+ def setup
Dir.chdir(File.expand_path(File.dirname(__FILE__)))
@@pwd = Dir.pwd
- end
- def setup
@abs_path = Pathname.new('/usr/local/bin')
@rel_path = Pathname.new('usr/local/bin')
@trl_path = Pathname.new('/usr/local/bin/')
@@ -95,7 +92,7 @@
case CONFIG['host_os']
when /linux/i
path1 = '/dev/stdin'
- assert_equal('/dev/pts/0', Pathname.new(path1).realpath)
+ assert_equal('/dev/proc/self/fd/0', Pathname.new(path1).realpath)
when /sunos|solaris/i
path1 = '/dev/null'
path2 = '/dev/stdin'