Skip to content

Commit d3d8555

Browse files
authored
Merge pull request #2302 from aubinlrx/tweak/deprecation_warning_ruby_27
Fix kwargs usage for Ruby 2.7
2 parents 9c6c7db + a4c6ae8 commit d3d8555

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rspec/rails/example/system_example_group.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ def initialize(*args, &blk)
9696
end
9797
end
9898

99-
def driven_by(*args, &blk)
100-
@driver = ::ActionDispatch::SystemTestCase.driven_by(*args, &blk).tap(&:use)
99+
def driven_by(driver, **driver_options, &blk)
100+
@driver = ::ActionDispatch::SystemTestCase.driven_by(driver, **driver_options, &blk).tap(&:use)
101101
end
102102

103103
before do

0 commit comments

Comments
 (0)