rubinius/rubinius — Issue #1410: undefined method `realpath' on File (Class) 
Author: telent
Created: 2011-11-15 14:02:42+00:00
State: open

:; git describe
v0.9.0-9974-ga2707e3

:; bx rake test:models --trace
rake aborted!
undefined method `realpath' on File (Class)
kernel/delta/kernel.rb:79:in `realpath (method_missing)'
/usr/local/rbx/lib/19/pathname.rb:446:in `realpath'
/home/dan/rbx_gems/gems/railties-3.1.2.rc2/lib/rails/engine.rb:602:in `find_root_with_flag'
....

This method exists in MRI 1.9.2p136 and 1.9.3p0, but not in 1.8.7

:; ruby1.8 -e 'puts File.realpath("/etc/hosts")'
-e:1: undefined method `realpath' for File:Class (NoMethodError)
:; ruby -e 'puts File.realpath("/etc/hosts")'
/etc/hosts