Created
January 18, 2015 08:57
-
-
Save odlp/060ecb30d9f00b97f990 to your computer and use it in GitHub Desktop.
RSpec Options (CORS) request support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add support for 'options' request test. Place in /spec/support | |
# https://github.com/rspec/rspec-rails/issues/925#issuecomment-62527611 | |
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