File::ALT_SEPARATOR is always defined (some string or nil).

This commit is contained in:
Tomoyuki Sahara
2015-12-08 16:44:13 +09:00
parent 4acfd1c7d2
commit 99e10b8dc4
+1 -1
View File
@@ -80,7 +80,7 @@ assert('File.join') do
end
assert('File.realpath') do
if File.const_defined?(:ALT_SEPARATOR) && File::ALT_SEPARATOR
if File::ALT_SEPARATOR
readme_path = File._getwd + File::ALT_SEPARATOR + "README.md"
assert_equal readme_path, File.realpath("README.md")
else