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
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
..
abstract Revert "ActionController::Base#process() now only takes an action name" 2015-10-29 16:18:27 -07:00
assertions Support for unified Integer class in Ruby 2.4+ 2016-05-18 21:58:51 -07:00
controller Merge pull request #24177 from vipulnsward/rename-test 2016-07-01 23:53:34 -03:00
dispatch Let TestResponse assign a parser. 2016-07-10 22:02:12 +02:00
fixtures Fix adding implicitly rendered template digests to ETags 2016-06-28 11:59:41 -07:00
journey Deprecate :controller and :action path parameters 2016-03-01 08:48:53 +00:00
lib/controller
routing
tmp
abstract_unit.rb More Action Pack abstract_unit cleanup (#25211) 2016-05-31 11:21:30 -04:00