Skip to content

Fix ruby 2.7 keyword deprecation

Thong Kuah requested to merge fix_capybara_keyword_warning into master

What does this MR do?

Related issue: #257438 (closed)

Fixes the following warning. It's not capybara, even it seems like it is, the offense is actually coming from our usage of find.

DEPRECATION WARNING: /Users/tkuah/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/capybara-3.33.0/lib/capybara/session.rb:753: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/tkuah/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/capybara-3.33.0/lib/capybara/node/finders.rb:50: warning: The called method `find' is defined here
 (called from block (2 levels) in open_health_status_dropdown at /Users/tkuah/code/ee-gdk/gitlab/ee/spec/features/issues/bulk_assignment_health_status_spec.rb:116)

Merge request reports