Searched refs:realdirpath (Results 1 - 2 of 2) sorted by relevance
/macosx-10.10/ruby-106/ruby/test/ruby/ |
H A D | test_file.rb | 238 Dir.mktmpdir('rubytest-realdirpath') {|tmpdir| 241 assert_equal(realdir, File.realdirpath(tst)) 242 assert_equal(realdir, File.realdirpath(".", tst)) 243 assert_equal(File.join(realdir, "foo"), File.realdirpath("foo", tst)) 246 result = File.realdirpath("bar", "//:/foo")
|
/macosx-10.10/ruby-106/ruby/test/pathname/ |
H A D | test_pathname.rb | 389 def realdirpath(path) method in class:TestPathname 390 Pathname.new(path).realdirpath.to_s 397 assert_equal("#{rdir}/not-exist", realdirpath("#{dir}/not-exist")) 398 assert_raise(Errno::ENOENT) { realdirpath("#{dir}/not-exist/not-exist-child") } 400 assert_equal("#{rdir}/not-exist-target", realdirpath("#{dir}/not-exist")) 402 assert_equal("#{rdir}/not-exist-target", realdirpath("#{dir}/not-exist2")) 405 assert_equal("#{rdir}/exist-target", realdirpath("#{dir}/exist")) 407 assert_raise(Errno::ELOOP) { realdirpath("#{dir}/loop") }
|
Completed in 94 milliseconds