Skip to content

Commit 6acc2ce

Browse files
committed
Merge pull request #2302 from aubinlrx/tweak/deprecation_warning_ruby_27
Fix kwargs usage for Ruby 2.7
1 parent 0cafe7f commit 6acc2ce

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)