instance method
query
Ruby on Rails edge
Since edgeSignature
query(action, **args)
Simulate a QUERY request with the given parameters and set/volley the response. Params are sent as the request body, per RFC 10008, with a default Content-Type of application/x-www-form-urlencoded (RFC 10008 requires QUERY requests to declare one) — pass as: :json to send a JSON body instead. See get for more details.
Parameters
-
actionreq -
argskeyrest
Source
# File actionpack/lib/action_controller/test_case.rb, line 479
def query(action, **args)
process(action, method: "QUERY", **args)
end
Defined in actionpack/lib/action_controller/test_case.rb line 479
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::TestCase::Behavior