See FileTest.executable?.
FileTest.executable?
Returns:
805 806 807
# File 'lib/fakefs/pathname.rb', line 805 def executable? FileTest.executable?(@path) end