1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

notepad.exe does not always exist in C:\Windows

Use `%WINDIR%\system32\drivers\etc\services` instead of `notepad.exe`.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2017-05-12 20:10:16 +00:00
parent 34761b7f96
commit 98746acff3

View file

@ -2,7 +2,7 @@ describe :file_readable, shared: true do
before :each do
@file = tmp('i_exist')
platform_is :windows do
@file2 = "C:\\windows\\notepad.exe"
@file2 = File.join(ENV["WINDIR"], "system32/drivers/etc/services").tr(File::SEPARATOR, File::ALT_SEPARATOR)
end
platform_is_not :windows do
@file2 = "/etc/passwd"