File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -485,10 +485,10 @@ def test_file_query # - file?
485485 end
486486
487487 def test_readable_query # - readable?
488- assert ( File . readable? ( 'test/test_file.rb' ) )
489- assert ( File . readable? ( 'test' ) )
488+ assert ( File . readable? ( __FILE__ ) )
489+ assert ( File . readable? ( File . dirname ( __FILE__ ) ) )
490490 assert ( ! File . readable? ( 'test_not' ) )
491- result = jruby ( "-e 'print File.readable?(\" test_not\" );print File.readable?(\" test \" );print File.readable?(\" test/test_file.rb \" )'" , 'jruby.native.enabled' => 'false' )
491+ result = jruby ( "-e 'print File.readable?(\" test_not\" );print File.readable?(\" #{ File . dirname ( __FILE__ ) } \" );print File.readable?(\" #{ __FILE__ } \" )'" , 'jruby.native.enabled' => 'false' )
492492 assert ( result == 'falsetruetrue' )
493493 end
494494
You can’t perform that action at this time.
0 commit comments