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
Aaron Patterson 10b18163de
Support extra stuff in the Content-Type header via Mime registration
I'm not sure a better way to describe this, but we need to set extra
stuff in the Content-Type header and we're doing it via Mime
registration so that we can have the "html_fragment" method on the
respond_to type.  This worked in Rails 5.2, but it's broken in 6.0

In the future, I think we should probably give `register` a block that
takes the response object so we can do more interesting and complex
stuff without doing weird string manipulation.  But this patch fixes the
issue we have today.
2019-08-20 10:26:37 -07:00
..
abstract Module#{define_method,alias_method,undef_method,remove_method} become public since Ruby 2.5 2018-12-21 01:39:18 +09:00
assertions Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
controller Support extra stuff in the Content-Type header via Mime registration 2019-08-20 10:26:37 -07:00
dispatch Allow tests to run without a TTY 2019-08-14 10:52:21 -07:00
fixtures Change the empty block style to have space inside of the block 2018-09-25 13:19:35 -04:00
journey Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
lib/controller Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
routing Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
abstract_unit.rb Revert "MethodCallAssertions is a regular player of the team ActiveSupport::TestCase now" 2019-08-02 00:24:21 -04:00