minitest-macruby provides extensions to minitest for macruby UI testing. It provides a framework to test GUI apps in a live instance. Documentation and examples are light at the moment as I’ve just thrown this together. Suggestions for extensions are very welcome!
Currently it provides the following methods in minitest’s assertions:
~~~ ruby new, open, _, close, save = find_ui_menu_items “File”
assert_ui_action new, delegate, “new_document:”, “n” assert_ui_action open, delegate, “open_document:”, “o” assert_ui_action close, delegate, “close_document:”, “w”
assert_ui_binding close, :enabled, delegate, has_window end
gem install minitest-macrubyIf you want to hack on minitest-macruby, clone it from GitHub:
git clone git://github.com/seattlerb/minitest-macruby