Skip to content

Commit

Permalink
fix: ruby 3 keyword arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
n-studio committed Mar 26, 2022
1 parent 6af9500 commit 545ced3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/kimurai/browser_builder/selenium_chrome_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def build
end

# See all options here: https://seleniumhq.github.io/selenium/docs/api/rb/Selenium/WebDriver/Chrome/Options.html
driver_options = Selenium::WebDriver::Chrome::Options.new(opts)
driver_options = Selenium::WebDriver::Chrome::Options.new(**opts)

# Window size
if size = @config[:window_size].presence
Expand Down
2 changes: 1 addition & 1 deletion lib/kimurai/capybara_ext/mechanize/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def set_cookie(name, value, options = {})
options[:name] ||= name
options[:value] ||= value

cookie = Mechanize::Cookie.new(options.merge path: "/")
cookie = Mechanize::Cookie.new(**options.merge(path: "/"))
browser.agent.cookie_jar << cookie
end

Expand Down

0 comments on commit 545ced3

Please sign in to comment.