Displaying 1 result from an estimated 1 matches for "caching_test".
2011 Jul 15
0
Writing test for CacheHelper
...safe_output_buffer.slice!(pos..-1)
self.output_buffer =
ActionView::OutputBuffer.new(safe_output_buffer)
else
fragment = output_buffer.slice!(pos..-1)
end
I have prepared a patch for this [1] which based on [2]. In addition,
there is currently a test in caching_test.rb called
test_fragment_caching_in_partials. This test would suffice as a
template for me but I need to find a way to change the output_buffer
in the helper. Any ideas how I could achieve this?
-Lauri
[1]: https://github.com/rails/rails/pull/2080
[2]: https://github.com/rails/rails/issues/1537...