Skip to content
Permalink
Browse files
Fix location of file for readable? test.
  • Loading branch information
headius committed Dec 3, 2014
1 parent 448ebae commit 2b20cb8b36a6deba54beaa07d250df02dd8f891e
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/jruby/test_file.rb
@@ -485,10 +485,10 @@ def test_file_query # - file?
end

def test_readable_query # - readable?
assert(File.readable?('test/test_file.rb'))
assert(File.readable?('test'))
assert(File.readable?(__FILE__))
assert(File.readable?(File.dirname(__FILE__)))
assert(! File.readable?('test_not'))
result = jruby("-e 'print File.readable?(\"test_not\");print File.readable?(\"test\");print File.readable?(\"test/test_file.rb\")'", 'jruby.native.enabled' => 'false' )
result = jruby("-e 'print File.readable?(\"test_not\");print File.readable?(\"#{File.dirname(__FILE__)}\");print File.readable?(\"#{__FILE__}\")'", 'jruby.native.enabled' => 'false' )
assert(result == 'falsetruetrue')
end

0 comments on commit 2b20cb8

Please sign in to comment.