Project

General

Profile

Bug #11946 ยป bug11946.rb

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

 
1
# just setup
2
require 'tmpdir'
3
require 'fileutils'
4
include FileUtils
5
dir = Dir.mktmpdir
6
cd(dir)
7
mkdir_p('foo')
8
touch('foo/bar.rb')
9

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

    
14
# just cleanup
15
rm_rf(dir)
16

    
17
# where we crash
18
File.basename(file).split('baz')