Skip to content

Commit

Permalink
Fix kwargs usage for Ruby 2.7
Browse files Browse the repository at this point in the history
Co-authored-by: Aubin Lorieux <aubin.lorieux@gmail.com>
  • Loading branch information
jhawthorn and aubinlrx committed May 5, 2020
1 parent 6f07f82 commit e7b4e8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/rails/controller/testing/integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ module Integration
http_verbs.push('xhr', 'xml_http_request') if ActionPack.version < Gem::Version.new('5.1')

http_verbs.each do |method|
define_method(method) do |*args|
define_method(method) do |*args, **kwargs|
reset_template_assertion
super(*args)
super(*args, **kwargs)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/rails/controller/testing/template_assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def teardown_subscriptions
end
end

def process(*args)
def process(*, **)
reset_template_assertion
super
end
Expand Down

0 comments on commit e7b4e8a

Please sign in to comment.