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/dispatch
Kasper Timm Hansen 333670ceb9 Let TestResponse assign a parser.
Previously we'd only assign a response parser when a request came through
Action Dispatch integration tests. This made calls to `parsed_body` when a TestResponse
was manually instantiated — though own doing or perhaps from a framework — unintentionally
blow up because no parser was set at that time.

The response can lookup a parser entirely through its own ivars. Extract request encoder to
its own file and assume that a viable content type is present at TestResponse instantiation.

Since the default response parser is a no-op, making `parsed_body` equal to `body`, no
exceptions will be thrown.
2016-07-10 22:02:12 +02:00
..
request Modifies mime-registration test not to interfere with real mime types 2016-05-23 16:25:23 -05:00
routing More Action Pack abstract_unit cleanup (#25211) 2016-05-31 11:21:30 -04:00
session Deprecate :controller and :action path parameters 2016-03-01 08:48:53 +00:00
callbacks_test.rb Publish AS::Executor and AS::Reloader APIs 2016-03-02 02:14:20 +10:30
cookies_test.rb existant => existent 2016-06-09 09:29:02 +05:30
debug_exceptions_test.rb Ensure logging on exceptions only includes what we expect 2016-07-02 06:09:10 +09:30
exception_wrapper_test.rb Remove mocha from ActionPack tests 2015-09-05 16:58:40 +02:00
executor_test.rb Publish AS::Executor and AS::Reloader APIs 2016-03-02 02:14:20 +10:30
header_test.rb Introduce Headers#add. Move Response#add_header upstream. 2015-10-03 21:59:18 -07:00
live_response_test.rb Fixes #23964 2016-03-13 19:51:49 -05:00
mapper_test.rb Fix setting route's to in a scope 2016-06-28 20:05:51 +02:00
middleware_stack_test.rb Currectly test the Middleware#== 2015-12-22 17:09:26 -02:00
mime_type_test.rb application/gzip added as default mime type into mime type list 2016-02-13 19:25:28 +02:00
mount_test.rb make the routes reader private 2015-08-18 16:33:18 -07:00
prefix_generation_test.rb fix typo 2016-06-01 17:35:00 +05:30
rack_cache_test.rb Dump and load rack-cache stuff. 2011-05-17 17:33:17 -04:00
reloader_test.rb Publish AS::Executor and AS::Reloader APIs 2016-03-02 02:14:20 +10:30
request_id_test.rb Prefer request_id over uuid and test the alias 2015-02-20 20:47:59 -02:00
request_test.rb Document and test ActionDispatch server_port 2016-05-12 18:46:16 +01:00
response_test.rb Add tests for 1xx, 204 and 304 responses to response_test.rb 2016-07-09 19:37:06 +09:00
routing_assertions_test.rb Add test to assert_recognizes with custom message 2014-09-05 16:47:00 -03:00
routing_test.rb Deprecate usage of nil as route path 2016-07-05 11:16:54 -04:00
show_exceptions_test.rb Use URL path extension as format in bad params exception handling 2015-12-08 21:23:47 -03:00
ssl_test.rb Rename constrain_to to exclude. 2016-03-03 21:09:58 +01:00
static_test.rb Revert "Its ideal to set Vary: Accept-Encoding, irrespective of whether gzipped version exists or not. This is helpful for CDN's to later distinguish assets, based on previous, current copies and introduced gzip version if any." 2016-01-19 16:22:40 -06:00
test_request_test.rb Remove last uses of @env[] and @env[]= 2016-04-28 20:26:58 -04:00
test_response_test.rb Let TestResponse assign a parser. 2016-07-10 22:02:12 +02:00
uploaded_file_test.rb always transcode the file to utf-8 2014-07-16 11:35:27 -07:00
url_generation_test.rb In url_for, never append ? when the query string is empty anyway. 2015-10-29 17:02:13 -07:00