Skip to content

Commit c47ccb6

Browse files
committed
Refactored test_helper to use FileUtils.pwd to run tests on Windows
1 parent 4bef5ab commit c47ccb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class Test::Unit::TestCase
99

1010
def set_file_paths
11-
cwd = `pwd`.chomp
11+
cwd = FileUtils.pwd
1212
if File.directory?(File.join(cwd, 'files'))
1313
@test_dir = File.join(cwd, 'files')
1414
elsif File.directory?(File.join(cwd, '..', 'files'))

0 commit comments

Comments
 (0)