From: James M. <jam...@gm...> - 2009-12-14 18:35:42
|
2009/12/5 DeNigris Sean <se...@cl...>: > Hi list, > > Is anyone testing their views (e.g. actions and outlets) are hooked up correctly? RubyInject seems to be broken in Snow Leopard and I've had a heck of a time trying to load a nib manually. > > I want to create tests that: > 1. create my view classes > 2. Load the nib > 3. verify that the connections are hooked up correctly > > Thanks!! Hi Sean, I've been playing around with using AppleScript and System Events to write automated GUI acceptance tests. I realise this isn't exactly what you want to do, but it might be a decent alternative. You might be interested in the second half of my Ruby Manor presentation on "Ruby & Cocoa" [1] and/or the relevant code [2]. Cheers, James. [1] http://blog.floehopper.org/presentations/ruby-and-cocoa-ruby-manor-2009-12-14/ [2] http://github.com/floehopper/hotcocoa-calculator/ |