lib/honeydew/device.rb in honeydew-0.1.4 vs lib/honeydew/device.rb in honeydew-0.10.0

- old
+ new

@@ -16,27 +16,18 @@ @serial = serial start_uiautomator_server end def contains_textview_text?(text, timeout = Honeydew.config.timeout) - response = has_textview_text? text, timeout - response['success'] - rescue - false + has_textview_text? text, timeout end def contains_element_with_description?(description, timeout = Honeydew.config.timeout) - response = has_element_with_description? description, timeout - response['success'] - rescue - false + has_element_with_description? description, timeout end def contains_button?(text, timeout = Honeydew.config.timeout) - response = has_button? text, timeout - response['success'] - rescue - false + has_button? text, timeout end def is_app_installed?(package_name) has_app_installed?(package_name) end