On Fri, Jul 09, 2004 at 07:52:36PM +0900, Graham Nicholls wrote: > Is there any way of preventing runtime errors caused by syntax errors - if > these reside in a piece of code which is not usually executed, testing can > be difficult. Syntax errors will be found when ruby loads the file. You can get ruby to check the syntax of a file without executing it using the -c option to the interpreter. Finding other errors, such as misspelled method names, is more complex. The simplest solution is to make sure your automated tests cover all your code, and not just the most common path. Paul