Skip to content

Commit

Permalink
resolve_ruby_exe returns nil if no ruby is found
Browse files Browse the repository at this point in the history
  • Loading branch information
jredville committed Aug 7, 2008
1 parent 1cb748e commit 13a3dfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/mspec/helpers/ruby_exe.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def resolve_ruby_exe
exe = ruby_exe_options option exe = ruby_exe_options option
return exe if exe and File.exists?(exe) and File.executable?(exe) return exe if exe and File.exists?(exe) and File.executable?(exe)
end end
nil
end end


unless Object.const_defined?(:RUBY_EXE) and RUBY_EXE unless Object.const_defined?(:RUBY_EXE) and RUBY_EXE
Expand Down

0 comments on commit 13a3dfd

Please sign in to comment.