Skip to content

Commit 854d2c6

Browse files
Fix invalid warnings Fix #147
1 parent 0408cc0 commit 854d2c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/appium_lib/driver.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,6 @@ def initialize opts={}
278278
patch_webdriver_bridge
279279
end
280280

281-
# load device methods
282-
extend Appium::Device
283281

284282
# Save global reference to last created Appium driver for top level methods.
285283
$driver = self
@@ -290,6 +288,9 @@ def initialize opts={}
290288
@@loaded = true
291289
# Promote only on Minitest::Spec (minitest 5) by default
292290
Appium.promote_appium_methods ::Minitest::Spec
291+
292+
# load device methods exactly once
293+
extend Appium::Device
293294
end
294295

295296
self # return newly created driver

0 commit comments

Comments
 (0)