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:
parent
feefcb869e
commit
bd40a2e780
1 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue