lib/honeydew/device_matchers.rb in honeydew-0.27.2 vs lib/honeydew/device_matchers.rb in honeydew-0.27.3
- old
+ new
@@ -53,10 +53,10 @@
:parent_description => parent_description,
:child_text => child_text
end
def has_app_installed?(package_name)
- adb('shell pm list packages').include?(package_name)
+ installed_packages.include?(package_name)
end
def is_option_in_setting_enabled?(item_name, option_names)
perform_assertion :is_option_in_settings_menu_enabled,
:menuName => item_name, :optionNames => option_names