fails:Dir.chdir defaults to $HOME with no arguments
fails:Dir.chdir changes to the specified directory
fails:Dir.chdir returns 0 when successfully changing directory
fails:Dir.chdir calls #to_str on the argument if it's not a String
fails:Dir.chdir calls #to_str on the argument if it's not a String and a block is given
fails:Dir.chdir calls #to_path on the argument if it's not a String
fails:Dir.chdir prefers #to_path over #to_str
fails:Dir.chdir returns the value of the block when a block is given
fails:Dir.chdir defaults to the home directory when given a block but no argument
fails:Dir.chdir changes to the specified directory for the duration of the block
fails:Dir.chdir raises an Errno::ENOENT if the directory does not exist
fails:Dir.chdir raises an Errno::ENOENT if the original directory no longer exists
fails:Dir.chdir always returns to the original directory when given a block
