File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 30
30
end
31
31
32
32
it 'returns matching file paths when supplied :base keyword argument' do
33
- dir = tmp ( 'temp' ) + '/'
34
- file_1 = dir + ' lib/bloop.rb'
35
- file_2 = dir + ' lib/soup.rb'
36
- file_3 = dir + ' lib/mismatched_file_type.txt'
37
- file_4 = dir + ' mismatched_directory.rb'
33
+ dir = tmp ( 'dir_glob_base' )
34
+ file_1 = " #{ dir } / lib/bloop.rb"
35
+ file_2 = " #{ dir } / lib/soup.rb"
36
+ file_3 = " #{ dir } / lib/mismatched_file_type.txt"
37
+ file_4 = " #{ dir } / mismatched_directory.rb"
38
38
39
39
touch file_1
40
40
touch file_2
41
41
touch file_3
42
42
touch file_4
43
43
44
- Dir . glob ( '**/*.rb' , base : dir + ' lib' ) . sort . should == [ "bloop.rb" , "soup.rb" ] . sort
45
-
46
- rm_r dir [ 0 ...- 1 ]
44
+ Dir . glob ( '**/*.rb' , base : " #{ dir } / lib" ) . sort . should == [ "bloop.rb" , "soup.rb" ] . sort
45
+ ensure
46
+ rm_r dir
47
47
end
48
48
49
49
it "calls #to_path to convert multiple patterns" do
You can’t perform that action at this time.
0 commit comments