Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Pathname.new(Dir.new('dir_name')) raises a TypeError #1154
Pathname.new should be able to accept a bare Dir.new instance as a param.
Returns a new instance of Pathname build from the Dir instance.
Raises a TypeError.
Steps to Reproduce
Test code (run from the Documents directory of a standard OS X user account).
JRuby 1.7.5 result:
MRI 1.9.3-p392 result: