Skip to content

Commit b123321

Browse files
Check ENV['DEVICE'] when :device isn't set.
1 parent c40b002 commit b123321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/appium_lib/driver.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def initialize opts={}
298298
# 'Selendroid'
299299
#
300300
# :ios, :android, :selendroid
301-
@device = opts[:device]
301+
@device = opts.fetch :device, ENV['DEVICE']
302302
raise 'Device must be set' unless @device
303303

304304
@device = 'Android' if @device.to_s == 'android'

0 commit comments

Comments
 (0)