From: Hal Fulton Date: 2004-05-20T06:02:53+09:00 Subject: Re: How to duck type? - the psychology of static typing in Ruby Marek Janukowicz wrote: > Such a separation is rather obvious. The business logic is rather easy > to test, but in my experience most bugs occur on the UI side (especially > in the connection layer between UI and business logic). How do you test > UI? UI is often hard, especially GUI. But I ran into an idea the other day that I was unfamiliar with. 'Expect' is sometimes used to wrap a GUI around a text interface -- spawn the process and interact with it. Of course, that in itself is non-trivial perhaps. But a text interface is easier to test, especially with Expect. Hal