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:
parent
34761b7f96
commit
98746acff3
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue