Is there a way to set the value of $? in a mock in Ruby?
EDIT: Using Dennis Williamson's suggestion:
command = "(exit 21)"
and use if $?.exitstatus == 0
instead of if $? == 0
EDIT: Using Dennis Williamson's suggestion:
command = "(exit 21)"
and use if $?.exitstatus == 0
instead of if $? == 0