Issue #5909 has been updated by Usaku NAKAMURA.

Status changed from Open to Assigned
Assignee set to Yui NARUSE

naruse-san, do you think that we should backport tests?
----------------------------------------
Backport #5909: File.expand_path cases has no specs for some cases in Windows
https://bugs.ruby-lang.org/issues/5909

Author: Yura Sokolov
Status: Assigned
Priority: Normal
Assignee: Yui NARUSE
Category: 
Target version: 


Following cases in file_expand_path has no tests.

http://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/34215/entry/file.c#L2926

irb(main):014:0> Dir.pwd
=> "C:/Ruby193/bin"
irb(main):015:0> File.expand_path('C:asdf', 'D:\home')
=> "C:/Ruby193/bin/asdf"
irb(main):016:0> File.expand_path('C:asdf', 'C:\home')
=> "C:/home/asdf"

http://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/34215/entry/file.c#L2969

irb(main):019:0> Dir.pwd
=> "C:/Ruby193/bin"
irb(main):020:0> File.expand_path('\asdf')
=> "C:/asdf"
irb(main):021:0> File.expand_path('\asdf', 'D:\home')
=> "D:/asdf"

This specs are desirable for testing experimental version of File.expand_path , which uses Windows API
(fenix by Luis Lavena)



-- 
http://bugs.ruby-lang.org/