mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Revert "Add the options method to action_controller testcase."
This reverts commit 0303c2325f
.
Conflicts:
actionpack/lib/action_controller/test_case.rb
REASON: It will conflict with a lot of test cases. Better to call
`process` directly since this is a very uncommon HTTP method.
Fixes #10638.
This commit is contained in:
parent
89f558c8c6
commit
6a4ff5cc09
2 changed files with 0 additions and 11 deletions
|
@ -499,12 +499,6 @@ module ActionController
|
|||
process(action, "HEAD", *args)
|
||||
end
|
||||
|
||||
# Simulate a OPTIONS request with the given parameters and set/volley the response.
|
||||
# See +get+ for more details.
|
||||
def options(action, *args)
|
||||
process(action, "OPTIONS", *args)
|
||||
end
|
||||
|
||||
def xml_http_request(request_method, action, parameters = nil, session = nil, flash = nil)
|
||||
@request.env['HTTP_X_REQUESTED_WITH'] = 'XMLHttpRequest'
|
||||
@request.env['HTTP_ACCEPT'] ||= [Mime::JS, Mime::HTML, Mime::XML, 'text/xml', Mime::ALL].join(', ')
|
||||
|
|
|
@ -201,11 +201,6 @@ XML
|
|||
assert_raise(NoMethodError) { head :test_params, "document body", :id => 10 }
|
||||
end
|
||||
|
||||
def test_options
|
||||
options :test_params
|
||||
assert_equal 200, @response.status
|
||||
end
|
||||
|
||||
def test_process_without_flash
|
||||
process :set_flash
|
||||
assert_equal '><', flash['test']
|
||||
|
|
Loading…
Reference in a new issue