summaryrefslogtreecommitdiff
path: root/spec/rubyspec/shared/file
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-12 20:10:16 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-12 20:10:16 +0000
commit98746acff3ee24d63b31549da5399df7ff32bc72 (patch)
tree834fc0d846f6eabfae0e4ff59a7fe1ebd6b46df2 /spec/rubyspec/shared/file
parent34761b7f965ec7f2cab4179caa672b32a450dc79 (diff)
`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
Diffstat (limited to 'spec/rubyspec/shared/file')
-rw-r--r--spec/rubyspec/shared/file/readable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/rubyspec/shared/file/readable.rb b/spec/rubyspec/shared/file/readable.rb
index 240c378d95..74f58caaff 100644
--- a/spec/rubyspec/shared/file/readable.rb
+++ b/spec/rubyspec/shared/file/readable.rb
@@ -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"