1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Support the OPTIONS Http Verb in Integration tests (#37369)

* Support the OPTIONS Http Verb

ActionDispatch::Integration::Session#process already lists OPTIONS as a valid verb symbol to pass

* Update actionpack/lib/action_dispatch/testing/integration.rb
This commit is contained in:
Greg Myers 2019-10-05 16:55:47 +01:00 committed by Kasper Timm Hansen
parent feefcb869e
commit bd40a2e780

View file

@ -47,6 +47,12 @@ module ActionDispatch
process(:head, path, **args)
end
# Performs an OPTIONS request with the given parameters. See ActionDispatch::Integration::Session#process
# for more details.
def options(path, **args)
process(:options, path, **args)
end
# Follow a single redirect response. If the last response was not a
# redirect, an exception will be raised. Otherwise, the redirect is
# performed on the location header. If the redirection is a 307 redirect,