instance method
kwarg_request?
Ruby on Rails 5.0.7.2
Since v5.0.7.2 Last seen in v5.0.7.2 Private — implementation detail, not part of the public APISignature
kwarg_request?(args)
No documentation comment.
Parameters
-
argsreq
Source
# File actionpack/lib/action_controller/test_case.rb, line 655
def kwarg_request?(args)
args.size == 1 && args[0].respond_to?(:keys) && (
args[0].keys.all? { |k| FORMAT_KWARGS.include?(k) } ||
args[0].keys.any? { |k| REQUEST_KWARGS.include?(k) }
)
end
Defined in actionpack/lib/action_controller/test_case.rb line 655
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::TestCase::Behavior