We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e047b0 commit 25333d6Copy full SHA for 25333d6
lib/appium_lib/driver.rb
@@ -81,7 +81,10 @@ def update data, *args
81
82
# Fix uninitialized constant Minitest (NameError)
83
module Minitest
84
- class Spec; end
+ # Fix superclass mismatch for class Spec
85
+ class Runnable; end
86
+ class Test < Runnable; end
87
+ class Spec < Test; end
88
end
89
90
module Appium
@@ -227,7 +230,10 @@ def initialize opts={}
227
230
# prefer existing method.
228
231
# super will invoke method missing on driver
229
232
super(*args, &block)
- rescue NoMethodError
233
+ # minitest also defines a name method,
234
+ # so rescue argument error
235
+ # and call the name method on $driver
236
+ rescue NoMethodError, ArgumentError
237
# puts "[Object.class_eval] '#{m}' not on super"
238
$driver.send m, *args, &block if $driver.respond_to?(m)
239
0 commit comments