Project

General

Profile

Bug #11946 ยป bug11946.rb

bjmllr (Ben Miller), 02/02/2016 11:15 PM

 
# just setup
require 'tmpdir'
require 'fileutils'
include FileUtils
dir = Dir.mktmpdir
cd(dir)
mkdir_p('foo')
touch('foo/bar.rb')

# seems to be important
file = File.join('foo', Dir.new('foo').to_a.last)
load(file)

# just cleanup
rm_rf(dir)

# where we crash
File.basename(file).split('baz')
    (1-1/1)