lib/appium_lib/driver.rb in appium_lib-1.0.0 vs lib/appium_lib/driver.rb in appium_lib-2.0.0

- old
+ new

@@ -103,11 +103,11 @@ r = data[:appium_lib][:require] r = r.kind_of?(Array) ? r : [r] # ensure files are absolute r.map! do |file| file = File.exists?(file) ? file : - File.join(parent_dir, file) + File.join(parent_dir, file) file = File.expand_path file File.exists?(file) ? file : nil end r.compact! # remove nils @@ -160,11 +160,11 @@ rescue NoMethodError, ArgumentError $driver.send m, *args, &block if $driver.respond_to?(m) end # override unless there's an existing method with matching arity end unless const.respond_to?(m) && - const.method(m).arity == $driver.method(m).arity + const.method(m).arity == $driver.method(m).arity end end end ## @@ -294,10 +294,10 @@ # Subsequent drivers do not trigger promotion. unless @@loaded @@loaded = true # load device methods exactly once extend Appium::Device - + # Promote only on Minitest::Spec (minitest 5) by default Appium.promote_appium_methods ::Minitest::Spec end self # return newly created driver