未验证 提交 e4c035a8 编写于 作者: K Kevin Deisz

Fix warning on arg forwarding in integration tests

Kwargs need to be forwarded for this method_missing to avoid warnings in Ruby 2.7.
上级 46285183
......@@ -432,6 +432,7 @@ def method_missing(method, *args, &block)
super
end
end
ruby2_keywords(:method_missing) if respond_to?(:ruby2_keywords, true)
end
end
......
......@@ -170,9 +170,10 @@ def method_missing(name, *args)
class IntegrationTestUsesCorrectClass < ActionDispatch::IntegrationTest
def test_integration_methods_called
reset!
headers = { "Origin" => "*" }
%w( get post head patch put delete ).each do |verb|
assert_nothing_raised { __send__(verb, "/") }
%w( get post head patch put delete options ).each do |verb|
assert_nothing_raised { __send__(verb, "/", headers: headers) }
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册