Skip to content

Commit

Permalink
Merge pull request #2302 from aubinlrx/tweak/deprecation_warning_ruby_27
Browse files Browse the repository at this point in the history
Fix kwargs usage for Ruby 2.7
  • Loading branch information
JonRowe committed Mar 26, 2020
1 parent 0cafe7f commit 6acc2ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rspec/rails/example/system_example_group.rb
Expand Up @@ -96,8 +96,8 @@ def initialize(*args, &blk)
end
end

def driven_by(*args, &blk)
@driver = ::ActionDispatch::SystemTestCase.driven_by(*args, &blk).tap(&:use)
def driven_by(driver, **driver_options, &blk)
@driver = ::ActionDispatch::SystemTestCase.driven_by(driver, **driver_options, &blk).tap(&:use)
end

before do
Expand Down

0 comments on commit 6acc2ce

Please sign in to comment.