Skip to content

Instantly share code, notes, and snippets.

@doyle
Created November 20, 2013 19:38
Show Gist options
  • Save doyle/7569617 to your computer and use it in GitHub Desktop.
Save doyle/7569617 to your computer and use it in GitHub Desktop.
Add this to your test_helper to enable options requests in rails integration tests
module ActionDispatch::Integration::RequestHelpers
def options(path, parameters = nil, headers_or_env = nil)
process :options, path, parameters, headers_or_env
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment