1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test/controller
eileencodes af1680f51c Fix GET JSON integration test request to use method override
When a `GET` request is sent `as: :json` in an integration test the test
should use Rack's method override to change to a post request so the
paramters are included in the postdata. Otherwise it will not encode the
parameters correctly for the integration test.

Because integration test sets up it's own middleware,
`Rack::MethodOverride` needs to be included in the integration tests as
well.

`headers ||= {}` was moved so that headers are never nil. They should
default to a hash.

Fixes #26033

[Eileen M. Uchitelle & Aaron Patterson]
2016-08-05 15:43:39 -04:00
..
api Fixes #24239 2016-04-04 08:51:29 -05:00
controller_fixtures
metal More Action Pack abstract_unit cleanup (#25211) 2016-05-31 11:21:30 -04:00
mime Render default template if block doesn't render 2016-02-25 07:14:49 -06:00
new_base Deprecate :controller and :action path parameters 2016-03-01 08:48:53 +00:00
parameters Fix wrong assignment. 2016-08-02 16:52:18 +02:00
request
action_pack_assertions_test.rb Deprecate :controller and :action path parameters 2016-03-01 08:48:53 +00:00
base_test.rb Deprecate :controller and :action path parameters 2016-03-01 08:48:53 +00:00
caching_test.rb Bring back support for callable cache_key on collection rendering 2016-07-21 08:42:56 +09:00
content_type_test.rb Use Mime[:foo] instead of Mime::Type[:FOO] for back compat 2015-10-06 11:29:30 -07:00
default_url_options_with_before_action_test.rb
filters_test.rb
flash_hash_test.rb Make flash messages cookie compatible with Rails 4 2016-05-06 15:12:31 -05:00
flash_test.rb Deprecate :controller and :action path parameters 2016-03-01 08:48:53 +00:00
force_ssl_test.rb Fix request.ssl? bug with Action Cable 2016-02-23 16:09:44 -05:00
form_builder_test.rb
helper_test.rb Implement helpers proxy in controller instance level 2016-05-05 16:17:17 -05:00
http_basic_authentication_test.rb Merge pull request #21181 from denisenkom/mypatch 2016-01-10 17:44:43 +01:00
http_digest_authentication_test.rb
http_token_authentication_test.rb Merge pull request #14212 from tylerhunt/fix-token-regex 2015-12-15 10:59:54 -07:00
integration_test.rb Fix GET JSON integration test request to use method override 2016-08-05 15:43:39 -04:00
live_stream_test.rb Merge pull request #24029 from rthbound/dont-call-each-when-calling-body-on-response 2016-05-06 14:22:05 -05:00
localized_templates_test.rb
log_subscriber_test.rb Pass headers through to payload for logging. 2016-03-08 22:59:27 -05:00
output_escaping_test.rb
params_wrapper_test.rb Remove mocha from ActionPack tests 2015-09-05 16:58:40 +02:00
permitted_params_test.rb
redirect_test.rb Move Workshop class definition 2016-05-30 23:15:49 -04:00
render_js_test.rb
render_json_test.rb
render_test.rb Fix adding implicitly rendered namespaced template digests to ETags 2016-07-13 15:07:49 -04:00
render_xml_test.rb Deprecate :controller and :action path parameters 2016-03-01 08:48:53 +00:00
renderer_test.rb Fix ApplicationController.renderer.defaults.merge! 2016-04-20 19:47:16 -04:00
renderers_test.rb Add ActionController:Renderers test 2016-01-03 22:51:45 -06:00
request_forgery_protection_test.rb Make sure the tests setup are made correctly 2016-07-17 05:13:19 -03:00
required_params_test.rb Add methods to StrongParameters 2016-01-19 12:06:29 -06:00
rescue_test.rb Action Mailer: Declarative exception handling with rescue_from. 2016-05-15 18:44:16 -07:00
resources_test.rb More Action Pack abstract_unit cleanup (#25211) 2016-05-31 11:21:30 -04:00
routing_test.rb Support for unified Integer class in Ruby 2.4+ 2016-05-18 21:58:51 -07:00
runner_test.rb
send_file_test.rb Use #performed? to terminate controller callbacks 2016-06-03 16:04:12 +02:00
show_exceptions_test.rb
streaming_test.rb
test_case_test.rb Reset rack.input when the environment is scrubbed for the next request 2016-07-27 11:58:55 -05:00
url_for_integration_test.rb Deprecate :controller and :action path parameters 2016-03-01 08:48:53 +00:00
url_for_test.rb Deprecate :controller and :action path parameters 2016-03-01 08:48:53 +00:00
url_rewriter_test.rb Deprecate :controller and :action path parameters 2016-03-01 08:48:53 +00:00
webservice_test.rb Transform the mime object to symbol when registering the parsers 2016-02-22 21:22:29 -03:00