Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Jan 8, 2025
1 parent 2f6f517 commit 31583af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/appium_lib_core/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ def get_app
def set_app_path
# FIXME: maybe `:app` should check `app` as well.
return unless @caps && get_app && !get_app.empty?
return if get_app =~ URI::DEFAULT_PARSER.make_regexp
return if get_app =~ URI::RFC2396_PARSER.make_regexp

app_path = File.expand_path(get_app)
@caps['app'] = if File.exist? app_path
Expand Down
2 changes: 1 addition & 1 deletion test/unit/driver_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_with_caps_and_appium_lib
opts = { 'caps' => { 'automationName': 'xcuitest' }, appium_lib: {} }
driver = ExampleDriver.new(opts)
refute_nil driver
assert_equal driver.core.caps[:automationName], nil
assert_nil driver.core.caps[:automationName]
end

def test_verify_appium_core_base_capabilities_create_capabilities
Expand Down

0 comments on commit 31583af

Please sign in to comment.