# File lib/minitest/macruby.rb, line 41 def assert_ui_action obj, target, action, key = nil refute_nil obj, action assert_equal target, obj.target assert_equal action.to_sym, obj.action assert_equal key, obj.keyEquivalent if key end
# File lib/minitest/macruby.rb, line 48 def assert_ui_binding item, binding_name, target, path refute_nil item refute_nil target binding = item.infoForBinding binding_name.to_s refute_nil binding assert_equal path, binding["NSObservedKeyPath"] assert_equal target, binding["NSObservedObject"] end