summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorTomoyuki Sahara <[email protected]>2015-12-08 16:44:13 +0900
committerTomoyuki Sahara <[email protected]>2015-12-08 16:44:13 +0900
commit99e10b8dc44cd7e362f23706cc94a3e0ac840ed7 (patch)
treec6d9b014f37ee22cab3ccee774bc9846c80f91bb /test
parent4acfd1c7d281678acfbf1d357c13f7ad81139123 (diff)
downloadmruby-99e10b8dc44cd7e362f23706cc94a3e0ac840ed7.tar.gz
mruby-99e10b8dc44cd7e362f23706cc94a3e0ac840ed7.zip
File::ALT_SEPARATOR is always defined (some string or nil).
Diffstat (limited to 'test')
-rw-r--r--test/file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/file.rb b/test/file.rb
index ebb515cbf..d62077f6e 100644
--- a/test/file.rb
+++ b/test/file.rb
@@ -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