Skip to content

Commit e539d7c

Browse files
committed
Renamed method installed? to app_installed?
1 parent 47276b5 commit e539d7c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

android_tests/lib/android/specs/common/device.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
end
2626

2727
t 'installed' do
28-
wait { installed?('fake_app').must_equal false }
28+
wait { app_installed?('fake_app').must_equal false }
2929
end
3030

3131
t 'reset' do

android_tests/lib/android/specs/install.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ def pkg
55
end
66

77
def installed
8-
installed?(pkg).must_equal true
8+
app_installed?(pkg).must_equal true
99
end
1010

1111
def not_installed
12-
installed?(pkg).must_equal false
12+
app_installed?(pkg).must_equal false
1313
end
1414

1515
t 'install/uninstall' do

ios_tests/lib/ios/specs/device/device.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ def go_back
2727
screen.must_equal catalog
2828
end
2929

30-
t 'installed' do
31-
installed = installed? "Derrp"
30+
t 'app_installed' do
31+
installed = app_installed? "Derrp"
3232
installed.must_equal false
3333
end
3434

lib/appium_lib/device/device.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ def remove_app(id)
140140
end
141141
end
142142

143-
add_endpoint_method(:installed?, 'session/:session_id/appium/device/app_installed') do
144-
def installed?(app_id)
145-
execute :installed?, {}, bundleId: app_id
143+
add_endpoint_method(:app_installed?, 'session/:session_id/appium/device/app_installed') do
144+
def app_installed?(app_id)
145+
execute :app_installed?, {}, bundleId: app_id
146146
end
147147
end
148148

0 commit comments

Comments
 (0)