Skip to content

Commit

Permalink
Fix location of file for readable? test.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Dec 3, 2014
1 parent 448ebae commit 2b20cb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/jruby/test_file.rb
Expand Up @@ -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

Expand Down

0 comments on commit 2b20cb8

Please sign in to comment.