520cd8f0e3
Follow-up to [49856][] Follow-up to [49194][] The introduction of memoization as an optimization posed a backwards incompatible change to View tests that call `render` multiple times. This commit changes the `@rendered` instance variable from a `String` to an instance of the `RenderedViewContent` specialized `String` subclass. The end result is that there is no memoization to reset, and the memoization optimization side-effect is preserved after rendering for test cases where `rendered` (or parser methods like `rendered.html`) might be invoked more than once. [49856]: https://github.com/rails/rails/pull/49856#issuecomment-1945039015 [49194]: https://github.com/rails/rails/pull/49194/files#diff-ce84a807f3491121a5230d37bd40454bb1407fcca71179e1a2fa76d4c0ddfa2aR293 |
||
---|---|---|
.. | ||
actionpack | ||
activerecord | ||
fixtures | ||
lib | ||
template | ||
abstract_unit.rb | ||
active_record_unit.rb | ||
buffers_test.rb |